Question about Microsoft Windows XP Professional

2 Answers

How to convert a jpeg image into bits(binary data)

I am doing my project in java. i have a need to convert images into its binary code

Posted by on

  • Peter Steiert
    Peter Steiert May 11, 2010

    Do your own homework. This is the kind of thing notes, listening, and textbooks are for.

×

2 Answers

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Vice President:

    An expert whose answer got voted for 100 times.

  • Expert
  • 271 Answers

Hi Sir,
Check this link.maybe it is what you are looking for.

http://www.vbcity.com/forums/topic.asp?tid=156188

Thanks

Posted on Feb 28, 2009

....not to mention "Google", all kinds of info and free software for this!

Posted on Feb 28, 2009

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

5 Answers

Changing Jpeg into PDF


Here is an Image to PDF Converter which converts JPG, GIF, TIF to PDF.

http://www.dvd-ppt-slideshow.com/aff/convert-jpg-gif-tif-to-pdf-image-to-pdf-converter/

Image to PDF is a simple, lightning-fast desktop utility program that lets you convert photos, drawings, scans and faxes into Acrobat PDF documents.

Aug 29, 2011 | PANDIGITAL PANSCN05 Film Scanner (35 mm)

1 Answer

How to get no. Of pixels from given image through java


try this code

import java.awt.image.PixelGrabber;
import java.awt.Toolkit;
import java.awt.Image;
class getpixel2
{
public static void main(String args[]) throws Exception
{

Image image = Toolkit.getDefaultToolkit().getImage("D:\\one.jpg");

if(image==null)
System.out.println("NO FIle");
PixelGrabber grabber = new PixelGrabber(image, 0, 0, -1, -1, false);

if (grabber.grabPixels())
{
int width = grabber.getWidth();
int height = grabber.getHeight();

if (isGreyscaleImage(grabber))
{
byte[] data = (byte[]) grabber.getPixels();

}
else
{
int[] data = (int[]) grabber.getPixels();
for(int i=0;i<data.length;i++)
{
int r = (data[i] >> 16) & 0xff;
int g = (data[i] >> 8) & 0xff;
int b = (data[i] >> 0) & 0xff;
System.out.println("(R,G,B)=("r","g","b")");
}
}

}
}
public static final boolean isGreyscaleImage(PixelGrabber pg)
{
return pg.getPixels() instanceof byte[];
}
} import java.awt.image.PixelGrabber;
import java.awt.Toolkit;
import java.awt.Image;
class getpixel2
{
public static void main(String args[]) throws Exception
{

Image image = Toolkit.getDefaultToolkit().getImage("D:\\one.jpg");

if(image==null)
System.out.println("NO FIle");
PixelGrabber grabber = new PixelGrabber(image, 0, 0, -1, -1, false);

if (grabber.grabPixels())
{
int width = grabber.getWidth();
int height = grabber.getHeight();

if (isGreyscaleImage(grabber))
{
byte[] data = (byte[]) grabber.getPixels();

}
else
{
int[] data = (int[]) grabber.getPixels();
for(int i=0;i<data.length;i++)
{
int r = (data[i] >> 16) & 0xff;
int g = (data[i] >> 8) & 0xff;
int b = (data[i] >> 0) & 0xff;
System.out.println("(R,G,B)=("r","g","b")");
}
}

}
}
public static final boolean isGreyscaleImage(PixelGrabber pg)
{
return pg.getPixels() instanceof byte[];
}
}

May 15, 2010 | Computers & Internet

2 Answers

DFT technique in image steganography


Just do a search in your favorite search engine for 'steganography dft' and you should get several thousand results that cover the theory, the math involved, etc. Bing returned 3,380 valid results.

Jul 26, 2009 | Computers & Internet

1 Answer

Can anybody tell me how to convert jpg image to its binary form??


may be this link will help you in making a project

http://www.codeproject.com/info/search.aspx?artkw=image+to+binary

Apr 22, 2009 | Microsoft Windows XP Professional

1 Answer

Java code for adding octal, hexadecimal subtracting binary,


Hello desireejane,


One method is to do the following

  1. Convert the octal, hexadecimal or binary to decimal.
  2. Add or Subtract the decimal normally
  3. Convert the result back to octal, hexadecimal or binary.

  • Convert the octal to decimal:

public static long octalToDecimal(String octal) throws NumberFormatException {
// Initialize result to 0
long res = 0;

// Do not continue on an empty string
if (octal.isEmpty()) {
throw new NumberFormatException("Empty string is not an octal number");
}

// Consider each digit in the string
for (int i = 0; i < octal.length(); i++) {
// Get the nth char from the right (first = 0)
char n = octal.charAt(octal.length() - (i+1));

int f = (int) n - 48;
// Check if it's a valid bit
if (f < 0 || f > 7) {
// And if not, die horribly
throw new NumberFormatException("Not an octal number");
} else {
// Only add the value if it's a 1
res
+= f*Math.round(Math.pow(2.0, (3*i)));
}
}

return res;
}



Mar 24, 2009 | Sun Java Programming Language (cdj-275)

1 Answer

Access of image file through c/c++ programme.


The best way to do this is to use Visual C++ or .NET's C# and use an image object to hold the binary image data as you address/manipulate it. If you are doing this as a web-based application, then ASP.NET using C# is the way to go, again using an image object. 
There are many helpful developer site for the beginner through expert that can walk you through the use of an image object. There are also many variants of the image object and you'll have to decide which one best suits your needs. Start with the generic one to get your base code loading and addressing the image and go from there.
Here's a good starting point.
Hope this helps.

Dec 25, 2008 | Computers & Internet

3 Answers

Solution for converting image(jpeg,.bmp) to string


hi prem,

i really cant answer your question but im hopeful that maybe this link will help you in your troubles.

thanks for using fixya

Mar 30, 2008 | Computers & Internet

1 Answer

Face recognition in java


http://www.ifp.uiuc.edu/~krejcark/Demo/DemoParams.dat

Mar 21, 2008 | Computers & Internet

1 Answer

Java programming


There are 2000 jpeg libraries in Java out there, easily searchable on search engines, sourceforge, maybe versiontracker, and secondly, you're asking for (what should be application-specific -output-; why would you hobble input) crop/resize without hinting at your algorithm? First, get a real programmer....

Java project for college applications? Gee, how about one to take a personality inventory (the INTJ type; only padded out) including areas of interest and make people little public/private spot codes (2D barcodes, like the ones in Japanese magazines) to indicate their type. The camera in a cellphone with J2ME can read the codes, maybe.... The cool part is that they're coupled with either P3P in wikis or java applets that help communicate with that person if you're an type that would otherwise take bothersome human care and preface to communicate.
There are all kinds of little systems you can build to thwart the draggy bits of Alzheimers' etc. with various little expert systems, that come up when you read a science journal (Nature, Science, Dr. Dobb's Journal, JAMA, JVNA....
You could invent something other than big-headed anime characters to add a personal visual reference to GUIs; emobots were cool, but maybe you can have a **** Cheney's Hands IM environment if it doesn't already exist (see also: Galludet University (for deaf students) stuff.)

Mar 20, 2008 | Computers & Internet

3 Answers

*ist RAW converter problem


Ignoring the JPEG artifacts, which isn't about the extra grain in both the TIFF and JPEG images produced by the convertor, is it possible that different sharpness settings were used for the output images that for the on screen review? High values of sharpening without using an appropriate noise threshold value will have the effect of increasing noise/grain.

Sep 08, 2005 | Pentax *ist D Digital Camera

Not finding what you are looking for?
Microsoft Windows XP Professional Logo

Related Topics:

314 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2644 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18381 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...