Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 678859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:11:46+00:00 2026-05-14T01:11:46+00:00

I have many (>600) EPS files(300 KB – 1 MB) in database. In my

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:11:46+00:00Added an answer on May 14, 2026 at 1:11 am

    This approach seems fundamentally wrong to me. If, as you suggest in approach 1, your service is capable of hitting the database itself (to update it), then why isn’t your service doing the work of pulling the content out?

    I’d be tempted to do something like…

    1) (possibly) add a column to your table to flag whether the EPS has been translated, potentially store the result of the translation as well.
    2) If you absolutely have to kick the process off from ASP.NET, either
    a) call the database from your front-end and get the ids that have not yet been translated and pass them to the service for translation, or
    b) just issue a call to the service saying “convert all unconverted eps files now”
    3) A better alternative would be to have a scheduled job running somewhere that will do the conversion. This means your ASP.NET processes aren’t sitting around waiting for the conversion to run.

    Passing the data around over the wire seems unnecessary to me, but I realise I don’t know how the servers are physically located or the capabilities of your network.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 text files many lines of value1<tab>value2 (maybe 600) many more lines
I have many dependency properties in my WPF usercontrol and many of them are
I have many (about 1000) images (printscreens), and I need to crop these images
I have many SWF file those I have included in my web page using
We have some js code splitted in many files. We have a core file
I have a HTML page where there are many <a onclick=javascript> What i need
We have a frameset (not iFrames !) application where we need to save state
I have the need to create a database for some data I have, and
I have many tables that use Lookup/Enum references for most of their column values.
I have MANY small Test Projects where I put together just enough code to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.