473,716 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Converting text file to JPG file-help

12 New Member
Can anybody help me with the code regarding how to convert a text file to JPG file... Its really urgent for me.. I was able to convert a text file to PDF.. But now I need to convert a text file to JPEG..
Oct 18 '07 #1
15 15803
r035198x
13,262 MVP
Can anybody help me with the code regarding how to convert a text file to JPG file... Its really urgent for me.. I was able to convert a text file to PDF.. But now I need to convert a text file to JPEG..
You realize of course that a JPEG file is usually a picture?
Perhaps if you specify what your conversion rules are ...
Oct 18 '07 #2
javadeveloper
12 New Member
Actually i need to read data from a file(with no extensions) in a folder and get the text in it written as an image.. I am able to read the contents of the file.. But i am not sure about how to put the text as JPEG file..
Oct 18 '07 #3
javadeveloper
12 New Member
moreover the text from the input file must be read line by line and written to a single image..
Oct 18 '07 #4
r035198x
13,262 MVP
Actually i need to read data from a file(with no extensions) in a folder and get the text in it written as an image.. I am able to read the contents of the file.. But i am not sure about how to put the text as JPEG file..
So you want to create a JPG image using Java code and have the text displayed as part of the image?
There is a com.sun.image.c odec.jpeg package. I don't know what it does but you can go ahead and read about it.
Oct 18 '07 #5
javadeveloper
12 New Member
i have found my own way of converting text to image.. thank you for providing much valuable information in time..
Oct 29 '07 #6
javadeveloper
12 New Member
I have got a little bit of a problem.. I am unable to convert the whole text file to a single image file.. It gets stored as a number of images.. Moreover I get into problems with alignment.. Can anybody help? I am using BuffferedImage class to generate the image.. is there any other possible way???
Nov 5 '07 #7
javadeveloper
12 New Member
can any one sort out the algorithm to convert a text file to jpeg image as it is using java?
Nov 5 '07 #8
javadeveloper
12 New Member
is there a way to read text file line by line and write it as a jpg file line by line using java.. need not be too complex.. but i expect something which can do it perfectly.. i m getting problems in alignment in my algorithm.. would be very thankful for any sort of solution in java.. i had been breaking my head to get this perfect..
Nov 6 '07 #9
r035198x
13,262 MVP
is there a way to read text file line by line and write it as a jpg file line by line using java.. need not be too complex.. but i expect something which can do it perfectly.. i m getting problems in alignment in my algorithm.. would be very thankful for any sort of solution in java.. i had been breaking my head to get this perfect..
Perhaps if you post the code you've written that is not aligning, I (for one) might be able to understand what you are trying to do.
Nov 6 '07 #10

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

Similar topics

2
13096
by: gnv | last post by:
Hi all, I am writing a cross-browser(i.e. 6 and netscape 7.1) javascript program to save an XML file to local file system. I have an xml string like below: var xmlStr = "<?xml version="1.0" encoding="UTF-8"?><a>some info</a>"; I want to save this xml file to local file system with JavaScript,
2
2122
by: Adonis | last post by:
I have an XML file hosted by my ISP free web space. It naively treats the file as text/plain. I would like to convert this data into a DOM object. So far my googling has turned up nothing, although looking over the DOM manual on Mozilla I came up with: function convertDOM(text) { var lines = text.split("\r\n"); var dom = document.createDocumentFragment(); for (var i = 0; i < lines.length; i++)
6
1944
by: pankaj.khandelwal | last post by:
Hi, How can I bundle a text/gif file in the shared object. Basically I want to read the content of this text file but I cannot have it seperately on the disc. Any clues. ? Pankaj
1
4556
by: David Dvali | last post by:
How can I load text from file to TextBox?
12
3183
by: Frederik Vanderhaeghe | last post by:
Hi, I have a problem converting text to a double. Why doesn't the code work: If Not (txtdocbedrag.Text = "") Then Select Case ddlBedrag.SelectedIndex Case 0 Case 1
3
5829
by: Flix | last post by:
Hello. What I want to do is simple: correctly reading a text file whose encoding is not known (it can be Ascii,UTF7,UTF8 or Unicode). I'm thinking of something like that: 1) Read the text as Ascii: string text="";
0
1738
Krishna Ladwa
by: Krishna Ladwa | last post by:
In Sql Server 2000 Version, I found that no Notification message box appears when converting text column to varchar but the data gets truncated to the given size for the varchar. Whereas it appears when you convert the varchar column to text column. Do this through Enterprise Manager Console Create a New table with a column as varchar datatype from Enterprise Manager  table created  Open the table and add one row  Successfully added the...
2
1928
by: shireen Eason | last post by:
How to create a text output file from access database?
6
1702
by: wxPythoner | last post by:
Hello! I have trouble understanding something in this code snippet: class TextReader: """Print and number lines in a text file.""" def __init__(self, file): self.file = file
3
1815
dlite922
by: dlite922 | last post by:
Hey guys, I need to maintain short list of messages in a text log file. I was just googling for the best way to delete the first or last line and insert a new one. Basically with each access I'll delete a line from the top (or bottom could work too) and insert a new line at the other end. (so it scrolls basically) If your curious, this is the status of a daily cron job, I basically want to know the status up to the last 10 days. ...
0
8718
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9105
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
6647
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4477
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3177
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
2
2543
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2119
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.