473,549 Members | 2,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Converting images to binary files

How do I convert JPEG images to binary files in ASP.NET? Please advice.

Thanks.
May 22 '06 #1
4 2384
Beginner wrote:
How do I convert JPEG images to binary files in ASP.NET? Please advice.

Thanks.

JPG files are binary by definition.
May 22 '06 #2
What is the ultimate goal of that?

Eliyahu

"Beginner" <Be******@discu ssions.microsof t.com> wrote in message
news:D3******** *************** ***********@mic rosoft.com...
How do I convert JPEG images to binary files in ASP.NET? Please advice.

Thanks.

May 22 '06 #3
I need to convert this JPEG image to binary format and save it as a text
file. The goal of it is to send the image to a Zebra Label printer and print
it on a label.

"Eliyahu Goldin" wrote:
What is the ultimate goal of that?

Eliyahu

"Beginner" <Be******@discu ssions.microsof t.com> wrote in message
news:D3******** *************** ***********@mic rosoft.com...
How do I convert JPEG images to binary files in ASP.NET? Please advice.

Thanks.


May 22 '06 #4
>I need to convert this JPEG image to binary format and save it as a text
file. The goal of it is to send the image to a Zebra Label printer and
print
it on a label.
That doesn't make a lick of sense, I'm afraid.

First, as you've been told already, an image is a binary object. There is a
difference between a file and an object. An object exists in memory, while a
file exists on a disk. In either case, however, you're talking about a
binary format.

Second, you say that "the goal of it is to send the image to a Zebra Label
printer and print it on a label." So, the first question here is, "send it
from where?" This is an ASP.Net newsgroup, so we're assuming you're talking
about something in an ASP.Net web application. But you haven't told us much
of anything. The devil is in the details, and we need some.

Where is this printer? Is it on the client or on the server? And what
exactly is in the image?

You need to step back, take a deep breath, and think about your business
requirements. Business requirements do not involve things like converting an
image to binary format. A business requirement defines some action to be
performed by your application that satisfies some requirement about what
your application should do, not how it should do it. For example, you might
want to put an image into a page, and allow a user browsing the web page to
print the image as a label. But you haven't said so yet.

From the top, now...

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

The man who questions opinions is wise.
The man who quarrels with facts is a fool.

"Beginner" <Be******@discu ssions.microsof t.com> wrote in message
news:40******** *************** ***********@mic rosoft.com...I need to convert this JPEG image to binary format and save it as a text
file. The goal of it is to send the image to a Zebra Label printer and
print
it on a label.

"Eliyahu Goldin" wrote:
What is the ultimate goal of that?

Eliyahu

"Beginner" <Be******@discu ssions.microsof t.com> wrote in message
news:D3******** *************** ***********@mic rosoft.com...
> How do I convert JPEG images to binary files in ASP.NET? Please advice.
>
> Thanks.


May 22 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1553
by: engwar1 | last post by:
I'm a .NET newbie and am beginning the process of converting an existing personal website to .NET from classic ASP. I'm assuming I want my aspx files in the root of my site in the same place as my asp files. In this way when I eventually get switched over to all aspx files my URLs will not have an extra directory name, only the extensions...
4
6780
by: RichG | last post by:
I have an Access database/forms application that has images stored in it. I need to develop a new VB that utilizes Oracle or the file system as the underlying storage for these images. In order to do this I need to retrieve and save the images to disk in their native format. The problem is that the images are stored in Access as the...
0
1754
by: Mark Allen | last post by:
Hello, I am creating an RTF document server side for a report. However I am having problems converting images into the required RTF format. I am converting the image into a string (binary) and including the image syntax as per the RTF Specification, however the image is not appearing when I view the document in Word or WordPad.
3
3454
by: Arun | last post by:
Hi, I have simple question to ask. How to write multiple Binary files to the Browser using Asp.Net and Visual C#.net I have seen examples where single binary file is written to browser. -Regards Arun
5
5020
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 that calls the web service to render a vertical strip of images. After doing some research I am unable to find some vb.net code that can assist...
3
3677
by: Howler | last post by:
Hello all, I am having a hard time seeing what I am doing wrong with a program I am having to write that converts pbm monochrome images into a similar pgm file. The problem I am having is understanding how to properly convert the bit/pixel in pbm to byte/pixel in pgm. My program is very straight forward conceptually open files, read...
3
1150
by: Bonzol | last post by:
vb.net 2003 VB Hey there, I have a program that uses remote connections and it can send strings to the clients and from clients to server. Now we need to send files this way, is there anyway to convert files such as images,, exes,, anything? to a string and send it? then recomplie it as a file again? or to convert it to binary? Or does...
10
13389
by: eholz1 | last post by:
Hello Members, I am setting up a photo website. I have decided to use PHP and MySQL. I can load jpeg files into the table (medium blob, or even longtext) and get the image(s) to display without a problem. I am using chunk_split(data) and the base64_encode and base64_decode on the files. I do a select from the database, and then echo the...
4
2095
by: larry | last post by:
Ok I'm a Python noob, been doing OK so far, working on a data conversion program and want to create some character image files from an 8-bit ROM file. Creating the image I've got down, I open the file and use TK to draw the images... but 1) It does not seem to end (running in IDLE), I have to kill the process to retry it seems tkinter...
0
7450
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1941
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1059
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.