C# - Retrieving Many Huge Sized EPS Files And Converting Them To JPEG In Application?
Mar 23, 2010
I have many (>600) EPS files(300 KB - 1 MB) in database. In my ASP.NET application (using ASP.NET 4.0) I need to retrieve them one by one and call a web service which would convert the content to the JPEG file and update the database (JPEGContent column with the JPEG content). However, retrieving the content for 600 of them itself takes too long from the SQL management studio itself (takes 5 minutes for 10 EPS contents).
So I have two issues:-
1) How to get the EPS content ( unfortunately, selecting certain number of content is not an option :-( ):-
Approach 1:-
foreach(var DataRow in DataTable.Rows)
{
// get the Id and byte[] of EPS
// Call the web method to convert EPS content to JPEG
}
or
foreach(var DataRow in DataTable.Rows)
{
// get only the Id of EPS
// Hit database to get the content of EPS
// Call the web method to convert EPS content to JPEG
}
or
Any other approach?
2) Converting EPS to JPEG using a web method for >600 contents. Ofcourse, each call would be a long running operation. Would task parellel library (TPL) be a better way to achieve this?
Also, is doing the entire thing in a SQL CLR function a good idea?
EDIT :- Unfortunately, I have to do this in the ASP.NET application itself and doing that in a separate process like Windows service is not an option.
View 1 Replies
Similar Messages:
Jan 15, 2011
i want to upload files that are only jpeg, jpg etc. But i couldn't filter the files in the opening window. I want to change the text "all files" to jpeg etc. in the asp.net. (C#)
View 3 Replies
Nov 29, 2010
I am workin on a web projects which has arround 25000 xml files. Some where in application we need to compare some part of a xml file with all 25000 xml files. Although it is working but takin arround 25 minutes to compare. how can i reduce this time and can compare files in less time.
View 1 Replies
Dec 7, 2010
I want to upload video files may be more than 500mb, simultanously in which if 500mb files are uploaded and stopped in middle of it and i want to continue the progress where it stops
How can i upload such a large video files?
View 1 Replies
Feb 18, 2010
Please help to understand this RegEx statement in details. It's supposed to validate filename from ASP.Net FileUpload control to allow only jpeg and gif files. It was designed by somebody else and I do not completely understand it. It works fine in Internet Explorer 7.0 but not in Firefox 3.6.
<asp:RegularExpressionValidator id="FileUpLoadValidator" runat="server"
ErrorMessage="Upload Jpegs and Gifs only."
ValidationExpression="^(([a-zA-Z]:)|(\{2}w+)$?)(\(w[w].*))(.jpg|.JPG|.gif|.GIF)$"
ControlToValidate="LogoFileUpload">
</asp:RegularExpressionValidator>
View 5 Replies
Mar 29, 2010
I have faced a peculiar issue in the production environment where I have got a main Application named "Configurator". it has a page which submits the asynchronus request for a batch process. after the batch process is started it calls a web service to genarate a report. the issue is that the number of times the service gets called the main application dll gets copied in the temporary aspnet files in either the service folder or the application calling the service named "GenerateReport" which is making the temporary ASPNET files as huge as 8 GB per day, which is in tuen is bringing the production server down.
I have tried simulating it is UAT environment with the same depolyed code and the same IIS settings. But I was not able to replicate the issue in UAT.It seems to be a very specific and peculiar issue.
View 4 Replies
Mar 7, 2011
I am using C# code for aspx pages. I need to convert multiple files in to single zip file that can be readable by windows default zip software.
View 4 Replies
Apr 25, 2010
I have EPSON LQ 300 Printer which driver or software doesn't allow user defined paper size.But i need code to access printer paper size ( custom size ) in asp.net c#
View 1 Replies
Jan 6, 2012
I am Using OboutGrid to Display the data in my Webforms..this is cool when am binding small data..but when am binding huge data it takes more time to display the records rather than normal datagrid. How can i improve the performance..
<obout:Grid ID="GridView1" runat="server" AllowAddingRecords="false"
AutoGenerateColumns="false" CallbackMode="true"
FolderStyle="styles/style_13" Serialize="true" ShowColumnsFooter="true" ShowGroupFooter="true"
onrowdatabound="GridView1_RowDataBound" PageSize="-1"
PageSizeOptions="1,2,3,4,5,6,7,8,9,10,50,100,500,-1">
[Code] ....
View 1 Replies
Jan 18, 2011
In my webapplication, i have a scenario to retrieve all of the .txt files which is stored in current date.The files would have to be stored in particular folder by appending the datetime with the filename regularly.I just want to move those files shich stored in the current date from that folder to amother folder. So that i nust need to retrieve the files validating from the current date.
View 2 Replies
Dec 27, 2010
Is it possible to convert a windows form application into a web application?
If it is not possible, how can I add the OpenFileDialog in a web application form?
I cannot see it in the toolbox if i choose new web application. On the other hand, I can see it if I choose windows form application.
View 21 Replies
May 14, 2010
I have written a program that interprets bar charts on the web and converts them into textual summaries. It is blind and visually impaired get more information during their web surfing. Anyways, right now all of the processing is handled on the user's machine and it is a very resource intensive program. So, I wanted to make it so the main computation was done by a server so that the user could simply click on a graph and get the summary instead of waiting while the computation was being done. Does anyone have a clue how to tackle this problem? If you need more information let me know.
View 8 Replies
Mar 17, 2010
My apps required me to store upload files into SQL binary fields. And then allow users to retrieve the files and either chose an apps to view them or save on disk. These files can be in diff formats, not just one type.
I have been reading about using the Response.ContentType method and Response.AddHeader method. The issue is the users can upload anykind of documents, ie: MS words, Xcel, JPEG,TIFF.... So at the time of downloading, I have no way of knowing that type it is to put in the Response.ContentType.
Can't I just stream it to the browser, let the download dialog box handle the type selection? as in when you download a file, the dialog box would ask if you want to select an app to open the file or save it on disk. How would I do so ?
View 1 Replies
Aug 26, 2010
I'm seeking an algorithm to split a list of items of varying sizes into "N" number of similarly-sized groups.
Specifically, I'm working on an ASP.NET site in C# where I have a (database-retrieved) list of strings. The strings are of varying lengths. I have a set of columns which need to display the strings. I need an algorithm that will find the most balanced sets (item order is irrelevant) to allow the final columns to be as balanced as possible.
Abstracted Example:
Creating 3 columns.
Items to distribute:
- Item A - height 5
- Item B - height 3
- Item C - height 7
- Item D - height 2
- Item E - height 3
Desired output:
Column 1: Item A, Item D
Column 2: Item C
Column 3: Item B, Item E
View 5 Replies
Jan 8, 2010
I am working on document management system. finding guide / code for Storing and Retrieving doc/pdf/xls files in SQL Server 2005.
View 1 Replies
Jan 12, 2010
I'm using a file upload control to save the documnets ina file server and i'm storing the url for the docs in database.
In a grid i'm binding the url to a hyperlink field. But the link is not working. The document is not openeing. Is this the correct way to do?
If the file is stored in a local machine it is openeing but if i store it in some fileserver it is unable to open.
View 1 Replies
Feb 15, 2010
I'm developing an three layer ASP.NET application with C# and Visual Studio 2008 SP1. I'm using WebForms.
I'm wondering to convert that application to a Silverlight application. Maybe I can reuse a lot of code of ASP.NET layer.
View 3 Replies
Sep 23, 2010
I have written a desktop application in vb.net. Now I need to convert it into a web application in asp.net. Can you please suggest how I might proceed?
View 1 Replies
Dec 19, 2010
I have created a asp.net webpage for viewing daily downloaded newspaper, saved as a pdf file in a selected folder (~/NEWS/{0}) within the web root directory. Also i have a SQL datasource linked, where the news table has two columns viz: date and filename.
I want to create a tiled listview where the date text is visible on the hyperlink. on clicking the hyperlink, the file name is retreived for the corresponding date and the pdf file opens in a fresh page.
I have tried going to the item template in listview and replacing the label control with a hyperlink control, but then not able to successfully proceed ahead.
View 6 Replies
Feb 12, 2011
Trying to preview a crystal report in pdf format in web application by passing parameter but showing error message:
crReportDocument.Export()
missing parameter value
<CODE>
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim Fname As String
crReportDocument.Load(Session("rptFileName"))
CrystalReportViewer1.ReportSource = crReportDocument
CrystalReportViewer1.RefreshReport()
CrystalReportViewer1.ParameterFieldInfo.Clear()
Fname = "C:TempTemp.pdf"
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
If Session("rptType") = "PrintOption0" Then ' Without Parameter
' no need to do anything
ElseIf Session("rptType") = "PrintOption1" Then ' One Parameter
paramField.Name = "@UserID"
paramDiscreteValue1.Value = Session("rptParameter1")
paramField.CurrentValues.Add(paramDiscreteValue1)
paramFields.Add(paramField)
CrystalReportViewer1.ParameterFieldInfo = paramFields
End If
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
' delete the exported file from disk
System.IO.File.Delete(Fname)
</CODE>
View 2 Replies
Mar 29, 2010
I had created ASP.Net Web Application named 'Traning Management System' (in English) for my company. Now my boss wants me to translate that application to Arabic language. He wants everything to be in arabic. I don't know how to do it. I searched in google and came to know about localization and globalization. I could not understand the topics. My application contains 1 master page, 5 .aspx pages. The pages mostly contains labels, textboxes, gridview, buttons and other controls. The project also contains reports.
View 4 Replies
Feb 6, 2010
but i have a problem to retrieve value from the database in the textbox using 3-tier application. ]
in the App_data i have following folder.
1> employeeBAL in this i have 1class file called empbasicinfoBLL.cs
2> employeeDAL in this i have test_data.xsd
in the basic details folder i have one page Basic information(employee basic info) in this i want that when user will log in the site [using username and password] after successful login when user will click on the Basic information then he will able to see his [name, employee no, first name, last name] etc on the page [i don't want to use grid-view to retrieve the details becoz i am using the table in this i am using Lable and Textbox for each] and this data should come from the EmployeeBAL.
View 1 Replies
Jun 22, 2010
I got this error in a project I did a while back. I think this was a web site project that i converted to a web app project. This was a while ago. This is an app I'm trying to run on my local machine. I'm not using IIS.
Does anyone know what this means?
Error 2
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
C:UsersKristDocumentsVisual Studio 2008ProjectsWeb AppsKrist Woodard .net tabbedWebApplication1WebApplication1Web.config 46
View 2 Replies
May 12, 2010
We have an ASP.NET 3.5 Web application in which we have faced the below issue:
The application is working fine but suddently at one point application URL prompts for the authentication. When we (the support team) checked the server, we were able to identify that the access was denied for some of the main files (like web.config, default page). When we enabled the access the application started working fine.
View 2 Replies
Jan 21, 2011
i've converted a asp.net website to a web-application.
in the website i have some custom classes (folder App_Code) which where encapsulated in a namespace.
when i try to build the web-application i get the compiler error type or namespace not found for my own classes.
e.g.
my class in App_Code/helper/ui/UIHelpers.cs:
[Code]....
at compile time i get the error-message type or namespace 'MYAPP' not found..
View 3 Replies