I am in middle of developing a system and using Evaluation version. What i want to know that how can I upload all images scanned at once at as a image . i can save Multipage PDF and Mutlipage TiFF and also i can upload scanned files one by one but i want to upload all images at once
Demo shows how to acquire images from scanner and upload single or all images to HTTP(S) server.
Source codes of demo can be found in distributive package of VintaSoft Twain .NET SDK: "[InstallPath]\VintaSoft Twain .NET v10.2\Examples\CSharp\AspNetMvc5TwainDemos\".
"Upload all acquired images as multipage TIFF or PDF file "
this option is only enabled when TIFF or PDF selected and disabled for BMP and JPG. if i make it active for BMP and JPG its only upload single file
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Files.Count == 0)
{
return;
}
// save the file to the server
string fileName = Server.MapPath("Images/demo.jpg");
Request.Files[0].SaveAs(fileName);
// return the path to this file
Response.Clear();
Response.Write("http://" + Request.Url.Authority + Request.RawUrl.Substring(0, Request.RawUrl.LastIndexOf("/")) + "/Images/demo.jpg");
Response.Flush();
}
}
its only hendle Request.Files[0] and if i try to make it Request.Files[1] it gives an error
Have you see the "UploadScannedImages" function in "[InstallPath]\VintaSoft Twain .NET v10.2\Examples\CSharp\AspNetMvc5TwainDemos\Views\TwainDemoWithLocalService\Index.cshtml" file? Functions shows how to upload one or several image files to HTTP server. Please see the function code and let me know if you will have any question or problem.