473,322 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

how to transfer images to webservice and retrive it back

hi!!!

i need some help from the Experts Like u people..

i m creating a applictaion that transfer images to the webservice which store in server memory temp.. and retrive back those images on other location at the same time.. i successfully created the applictaion .. using some serialization concept (BInary Formatter).. But the main issue is that .. it isworking very slow. it take too much time around 30 - 40 sec to display image on the viewer side which is seeing the picture in a activex in the browser.. so please help me out how could i transfer images fastly.... and also there is some problem in activex too.. it does not work in some IE's. Like it works in IE6.0 or IE7.0 in one network and not working in other network having same browser.. and it does not working in mozilla firefox too..

so please guys help me out/....

i shall be higly thankful to you..

again thanks in advance...
Dec 19 '08 #1
10 7242
PRR
750 Expert 512MB
@sandeepdhankar10
Depending on the size of the image you are sending ..the processing will take its time...
Try using compression GZipStream Class
Dec 20 '08 #2
actully when i sending the images /... they are allready compressed.. there size was around 180 kb (Max..)... is the GZIPStream Class able to compress much more...????
Dec 20 '08 #3
PRR
750 Expert 512MB
@sandeepdhankar10
allready compressed?? ok .. if the size is 180kb... i guess its ok .. you can if you want still compress it .. you can use GZipStream Class... its gonna be real small then ... perhaps 15kb( for xml files it does compress a lot )?
If i understood you correctly
1.you want to send image A to webservice
2. webservice process it and sends it back?
3. You display it back?
If that right then i guess its going to take time... You should consider configuring webservice to do the processing fast and making it available all the time ...
what exactly is the web service doing to the image? For transfer and retrieval i guess delay of 5-10sec is ok.. specially if its a image file?
Dec 20 '08 #4
ya u r getting right... actully iam capturing Desktop image and compress it and send to webserive.. . webservice didnt do any thing it just.. store the img in some arrary kind of thing.. and when some one want to see the same pictures... he just fetch from the webserice... but the fecthing as well as saving the images take very much time... . .

and some time i gott the exception too like Http Exception 417 ..
i tried to use webproxy.. class.. to solve this.. but after that it gave bad gateway excption...sometime.. and if i use some network cridentials then there is message from server ".net framework permission exception"...

i thought one reason that the image is not coming fastly is throwing exception.. b/c it waste one whole trip...

so what sholud i do..
Dec 20 '08 #5
PRR
750 Expert 512MB
@sandeepdhankar10
then maybe you should store it in database? are you storing the image on the server as a file( on a particular folder) ? If you intent to store images received from clients ... and display them on a webpage to a operator you clould do
1. store the images in database
2. in a special folder ..
Dec 20 '08 #6
no ,, i am storing the image byte in byte array..which appliction varible.. and can be accesble to all.. if i store images in database or in any loctionon server.. (i tried the same thing earlier) it take little more time.. b/c of the I/O operations...

i wanna let u know that i am using seralisation and binary formatter for all this..

should there is an y other way to do this.. b/c i read some where serialzation is slow process....
Dec 20 '08 #7
PRR
750 Expert 512MB
@sandeepdhankar10
Check this out :
Application
Have you used
Expand|Select|Wrap|Line Numbers
  1. Application.Lock();
  2. Application.UnLock();
  3.  
in your code while writing to it?
Dec 22 '08 #8
thanks for suggestions..
but,
i haven't use Application.Lock() etc,...

but
the link Application ... is not working .. plese give the EXAct link..

thanks..
Dec 22 '08 #9
PRR
750 Expert 512MB
@sandeepdhankar10
Check now ...or try this
App
regarding your query.. i dont think you should get an error.. as long as you are reading the correct value ... and that value exists... Could you post sample code that you used to insert and read the byte array???
Dec 22 '08 #10
bimbim
1
Covert image to Base64 string and pass to web service and return image as base64 string
http://bimbim.in/post/2010/08/21/How...b-service.aspx
Aug 27 '10 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Sunny | last post by:
Hi all, I have to prepare a webservice (framework 1.1, C#) and winapp client (fw 1.1, C#). The service will prepare a file and soul send it to the client. Any help in that direction, how to...
4
by: batista | last post by:
Hello All, I want to know the Difference Between Server.Transfer() And Response.Redirect()?
0
by: S. Berwanger | last post by:
Hallo, I'm trouble debugging a Webservice application on the WinCE 4.1 emulator from VS 2003. The Webservice gives back Datasets from a SQL Database. When I'm starting the application for the...
5
by: Peter Lapic | last post by:
I have to create a image web service that when it receives an imageid parameter it will return a gif image from a file that has been stored on the server. The client will be an asp.net web page...
1
by: VidhyaDiwakar | last post by:
Hi, Could someone please let us know the command to move an image from right to left and should reappear on the screen from the other side. Similar to the marquee tag..in HTML Thanks, Vidhya
3
by: John Kotuby | last post by:
I have just upgraded to a new development machine that came with Vista ultimate. I am developing a website with VS2005 and VB. My image and css references in my source code are all relative. For...
6
nehashri
by: nehashri | last post by:
hello im preparing a chemical database where i need to store chemical structures. ASP as front end i want that when the user draw a structure(user will manually draw the structure) in frontend...
1
by: PandaKel | last post by:
Hi, I would need to save a whole excel file into 1 field in SQL2005. i have created a field with varbinary(max) in a database table. can someone please help to advise how the excel can be translated...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.