Ask a Question related to ASP.NET Web Services, Design and Development.
-
klj_mcsd@hotmail.com #1
What is the fastest way to return the binary of a file?
Currently this is what I'm doing and it takes about 30 - 60 seconds for
88 kb file to show in my web browser from my web service. I think that
is too long when you webservive is on a network server. Can someone
look at this please. Thanks
bImage = New Bitmap("c:\images\" & arrImages(ImageNo).ToString)
'Save as PNG file
bImage.Save(bFile, System.Drawing.Imaging.ImageFormat.Png)
'Return Binary file
Return bFile.GetBuffer()
When I get is from the web service I just display it using
Response.ContentType = "image/png"
ms = New MemoryStream(x)
Response.OutputStream.Write(x, 0, Convert.ToInt32
(ms.Length))
klj_mcsd@hotmail.com Guest
-
How can I return a binary file (image) from a web service
A url to an image file will be passed to my web service. What function can I use that will get the image and return the image in binary form? ... -
Binary file IO
Hi, What I would like to do is load a file's contents from a file on the server and put the contents into a record in a database. For this I... -
How to get binary file from SQL field?
I want to display binary data from SQL server 2000 in an asp page. The data comes from a Windows Sharepoint Services document library. The raw... -
Why can't I create a binary file ?
open FH, ">1.txt"; binmode FH; binmode STDOUT; print FH "123m,zxnc,mzxnc,mzncm,zxc"; close FH; Why the output still a text file ? -
return binary content from within ASPX page
my aspx page gets binary data with ms-word file. (just byte array). I want this data to send back to the browser, but when i try to do this with... -
Chad Z. Hower aka Kudzu #2
Re: What is the fastest way to return the binary of a file?
[email]klj_mcsd@hotmail.com[/email] wrote in news:1121725105.064218.29520@o13g2000cwo.googlegro ups.com:
Web services by default encode binary data as base 64, this expands its size. You need to look at> Currently this is what I'm doing and it takes about 30 - 60 seconds for
> 88 kb file to show in my web browser from my web service. I think that
> is too long when you webservive is on a network server. Can someone
> look at this please. Thanks
DIME, etc to change the transport to binary.
--
Chad Z. Hower (a.k.a. Kudzu) - [url]http://www.hower.org/Kudzu/[/url]
"Programming is an art form that fights back"
Blogs: [url]http://www.hower.org/kudzu/blogs[/url]
Chad Z. Hower aka Kudzu Guest



Reply With Quote

