ramesh poorella

Ranch Hand
+ Follow
since Jul 19, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ramesh poorella

Hi,

how to get the Html table data into list of arrays like [[123,456,abc],[456,789,fgh],[455,577,errr]] using Jqueary? and how to pass these data into spring controller with ajax call?



Thanks,
Ram
HI,


How to Handle the Multipart file size exception n spring MVC?



regards,
Ramesh
7 years ago
Hi all,
I am trying to execute an Ajax POST with multipart content-type but I
am having a lot of trouble getting this to work.


$("#Update").click(function () {
var formData = $("#Formdata").serialize();

$.ajax({
type: "POST",
contentType: 'multipart/form-data; charset=UTF-8; boundary=AaB03x',
encoding: '',
url: "${pageContext.request.contextPath}/mydashboard/Update",
data: formData,
success: function( data )
{
alert( data );
}
});

});



Please help
Hi,

how to send multipart/form-data with ajax cal to spring controller?





Thanks,
7 years ago
Actually i have Attachment in my jsp like <input type="file">, so once selected file from disk i want show preview of that file.. user may browse any file...
this is my requirement..
7 years ago
Hi,

i want read a file from local drive and display the same in Jsp page . it may be any format like word, text, image or PDF.


Please help me
7 years ago

Hi,

i am getting java.io.IOException: Write error at PdfFileSpecification. please help me on this,


RandomAccessFileOrArray myTifFile = new RandomAccessFileOrArray(file);

int numberOfPages = TiffImage.getNumberOfPages("D://myTifFile.tif");
FileOutputStream os=new FileOutputStream("D://mypdffile.pdf");
com.itextpdf.text.Document TifftoPDF=new com.itextpdf.text.Document();

PDFWriter writer = PDFwriter.getInstance(TifftoPDF, os);


writer.setStrictImageSequence(true);

TifftoPDF.open();

for(int tiffImageCounter = 1;tiffImageCounter <= numberOfPages;tiffImageCounter++) {
com.itextpdf.text.Image img = TiffImage.getTiffImage(myTifFile, tiffImageCounter);

Rectangle pageSize = new Rectangle(img.getWidth(),
img.getHeight());
TifftoPDF.setPageSize(pageSize);
TifftoPDF.newPage();
TifftoPDF.add(img);


}

TifftoPDF.close();
TifftoPDF.toString();
PdfFileSpecification.fileEmbedded(writer, "D://mypdffile.pdf", null, null, true, "applications/pdf", null);




Thanks,
Ramesh
8 years ago
Hi,

please anybody provide the sample code for tiff to searchable PDF conversion



Thanks
8 years ago
Hi,

please help me on where i can download jar file for OCR in java



Thanks,
Ramesh. P
8 years ago


bin is not getting null.

bimg is getting null
8 years ago
Hi ,
The bellow is my code, here i got the null at bimg = ImageIO.read(bin);


java.io.InputStream in = new FileInputStream("D:\\123.tif");
int size=in.available();
byte[] buff = new byte[8000];

int bytesRead = 0;
ByteArrayOutputStream bao = new ByteArrayOutputStream();
buff = new byte[in.available()];
while((bytesRead = in.read(buff)) != -1) {
bao.write(buff, 0, bytesRead);
}

byte[] data = bao.toByteArray();


BufferedImage bimg;
java.io.InputStream bin = new ByteArrayInputStream(data);
try {
bimg= ImageIO.read(bin);
} catch (IOException ioe) {
throw new RuntimeException(
"Failed to render image",
ioe);
}




please help me why i am getting null value
8 years ago
please suggest how to do in my code
8 years ago
hi paul,

please give me code


Thanks,
Ramesh
8 years ago
my question is i have text in my tiff file.. after converting tiff to pdf. i should able to search a string. how it is possible through java code?
8 years ago