Reading 8kb tiff image and then writing into backend. please help

Hi All, Please Help ..
My aim is to read a tiff image which of 8kb 1732x717 size, and then store it into backend.
what I did is read the image into bufferedImage and then used tiffencodeparam with compression_none but the problem is size is too much after encoding.
code sample
BufferedImage image = ImageIO.read(tiff_filename); to read tiff image
to write tiff image
TiffEncodeParam p = new TiffEncodeParam();
p.setCompression(TiffEncdeParam.COMPRESSION_NONE);
FileOutputStream out = new FIleOutputStream(tiff_filename);
ImageEncoder e = ImageCodec.createImageEncoder(""TIFF,out,p);
e.encode(image);
out.close();

I got all my pictures AND everything else back, folders, ratings, keywords etc
Fortunately I had a backup of the entire iPhoto library folder, it was about 3 months old (I know shame on me) so I didn't want to just use the entire backup folder and lose 3 months of photos.
So I just copied the AlbumData.xml file and the Library6.iPhoto file. PRESTO all my pictures were back WITH all the folders,keywords etc, etc intact!! (up till the 3 month old backup point).
Then I just re-imported the missing 3 months worth of pictures from the original folder in the iphoto library folder. So all I had to recreate was 3 months worth of customization. WHEW!!
Reading through the discussions it seems there is a fair number of users where iPhoto would go empty, but they knew the images were still on the computer. I am not a programmer, but it seems silly to me the their are files that get re-written everytime iPhoto closes....computers crash. and then what happens to the files? Mine got corrupted, lesson learned BACKUP more frequently!!
Thanks to Old Toad who steered me to the Library6.iPhoto as a possible troublemaker in another thread!

Similar Messages

  • BPEL or OSB for reading data from db and then writing to another db

    Hi All,
    I have a requirement of reading the data from a table in one database and then writing into the table in another databas.I dont need any transformation on the data.
    I understand that i can do this by creating a BPEL process with DB adapters.
    Is there any better way of implementing this.I am new to OSB and If need to use OSB, then how can we do this in OSB and what are the advantages of using OSB over BPEL in implementing this.
    Thanks,
    ashok

    probably it would be much easier to develop everything in JDeveloper using DBAdapter.
    You can run it inside SOA Suite, but you don't even need BPEL, just use Mediator.
    Otherwise you can export all the JCA and WSDL and XSD paraphernalia from JDeveloper and import into OSB, it should run smoothly.
    How do you trigger the transfer? Polling the DB to look for new rows?

  • When I try to add video to iMovie on iPod Touch, none of the videos show up to be added. I've restarted the iPod twice, closed all the apps and then reopened iMovie. Please help!

    When I try to add video to iMovie on iPod Touch, none of the videos on the Touch show up to be added. I've restarted the iPod twice, closed all the apps and then reopened iMovie. Please help!

    Now You lost me (without using a computer?) - Most probably due to that I've not got an iPod Touch but mine is seven Years old - so it most probably work in a totally different way.
    Sorry
    Yours Bengt W

  • I was updating to OS5 and instead my iPhone went back to factory settings. Now the iPhone doesnt read my sim card and cannot be configured. Please help

    I was updating to OS5 and instead my iPhone went back to factory settings. Now the iPhone doesnt read my sim card and cannot be configured. Please help

    Nothing happened, i managed to get my computer to recognise it and now restoring... but it says 3 hours remaining?! Will i lose everything?

  • How to Read from two file and write to another file --Please help !!

    Hi all,
    Please suggest me where i'm goin goin wrng.
    I have 2 flat files. one of them is the main file(Ann.dat) has a about 150,000 lines (each line has unique ID from 00001 to 45000) of data and the the other(Miss.dat) has a just a list of IDs that are no longer in use & have to be deleted from the first file(NewAnn.dat). (Note that Ann.dat is a tab delimitted file and Miss.dat is just a list of all invalid IDs)
    Below is my code. It doesn't do what I'm supposed to. Please suggest me or help me with a code to do it. What I'm trying to do is read each of the lines from the 2 files compare the ID in ann.dat with all the IDs in Miss.dat & if it doesn't match with the ID in Miss.dat write the whole line to NewAnn.dat. And do the rest with all the lines in Ann.dat.
    It could be a real dumb question. since i'm not a software professional, I consider myself to be newbie to programming. I desperately need your help.
    import java.io.*;
    import java.util.*;
    public class anntemp{
         public static void main(String[] args)
              String keyAnn ="";
              String keyMis="";
              String recAnn =null;
              String recMis =null;
              try{               
              FileReader fr=new FileReader("C:\\Tom\\Ann.dat");
              BufferedReader br=new BufferedReader(fr);
              int couter=0;
              while ((recAnn = br.readLine())!=null)
                   couter++;
                   keyAnn = recAnn.substring(0, recAnn.indexOf("\t"));
              FileReader fr1=new FileReader("C:\\Tom\\Miss.dat");
              BufferedReader br1=new BufferedReader(fr1);
              while((recMis = br1.readLine())!=null){
              keyMis = recMis.substring(0, recMis.indexOf("\t"));
                   if(keyAnn.equals(keyMis)){
         FileWriter fw=new FileWriter("C:\\Tom\\NewAnn.dat",true);
         BufferedWriter bw=new BufferedWriter(fw);
         PrintWriter pw=new PrintWriter(bw);
         StringBuffer writeValue = new StringBuffer();
         writeValue.append(recAnn);
                                                 pw.println(writeValue.toString());
         pw.flush();
              }catch (Exception expe){
                   System.out.println("In Exception ");
                   expe.printStackTrace();
    Thank you all in advance,
    br

    I think you need to close the files when you are done in the inner loop. Plus I think you'll be overwritting the file in the inner loop if more than one match. It might be easier to read the unused id file into a map at the start, and then loop up the id's from the master file in the map. You can put the unused id's in as the keys, and a Boolean.TRUE as the value (value won't matter). Then just check if the map contains the key for the id read from the master file. That should cut down on disk activity. This assumes the unused id file is smallish.

  • Skipping songs and then erasing everything.  Please Help

    My iPod had been having this problem for a few weeks, but I "fixed" it, and now it is happening again. I have an ipod 40gb touch wheel, and what its doing is I restored my ipod, using 2005.09.06, and then I put all my t4racks back into it through itunes. But, after a day to a week, it will start scrolling through all the songs, never playing any of them, and then go back to the menu. I tried to reset it (play/menu buttons together), and it erased all my tracks. This has happened a couple of times.
    Can anyone please help me?

    Infuriating, isn't it?
    I have the same problem with my 3rd generation iPod. I also "fixed" it, or so I thought, but then the problem returned after awhile. I hate to tell you this, but I really don't think there is a fix for this problem. I've tried all of the recommended "solutions," but none of them worked for very long. I don't think there is anything the matter with my iPod — I think the latest firmware update is responsible - others think so too. Did you recently update the firmware for your iPod?
    Patrick

  • TS1702 My apps tend to open, Then freeze and then turn off. Please help

    What usually happens is I open my app and then the game eventually loads. After some time,if the game has volume,it will make weird noises. ie.GTA 3
    I get really annoyed and try to turn the app of by pressing the home button but it still doesn't quit. PLEASE HELP!!!
    P.S. Its an Ipod touch 4G

    See:
    iOS: Troubleshooting applications purchased from the App Store

  • Color Changed when reading a Tiff Image

    I have created a ImageIcon of a tiff image by using the following code. but when reading some images the color is Mis-Matching
    BufferedImage bufImage = ImageIO.read( <tiff file path> );
    JLabel jLabel= new JLabel(new ImageIcon(bufImage));whats the reason for this?.. anybody send me the code snippet to read the tiff image in its original color.. please..

    Thanks for the reply.
    When I render a tiff format image, I have a choice to either render with a alpha or not. I pick with alpha.
    In CS2 Photoshop when I would open that tiff file, my image would come up and I would be able to see the whole image I rendered. The alpha would be in the channel tab where I would make active and apply to my image if I wanted to.
    Now in CS5 when I open that same tiff file my image opens up with the alpha applied already. What I mean by applied is my background is gone or transparent. I have no other layer to turn on. Just my image with no background. Also in the channel tab I have no alpha I would have to create one from the original image.
    I hope this explains my issue better, if not let me know I'll have to do some screen shot for you.

  • I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • PSE12: How to create gridlines on the image page then converted into a pdf? [was: N276]

    I want to download an image from the internet, for example, batman, create gridlines on the image page then converted into a pdf.  where on adobe photo shop element 12 can I do this.

    On way is to define a pattern:
    https://forums.adobe.com/thread/875370?tstart=0
    Another way is this neat free grid generator filter:
    http://www.richardrosenman.com/software/downloads/
    1. Add a blank layer above the picture layer, fill with white, and set Blend Mode to Multiply.
    2. Apply the filter. There are many options. Here I chose black lines on white background with 20 square boxes across. Note that the background should be pure white (255,255,255) so as not to change the original picture.
    You can also find lots of grid images on the Internet, for example a Google search on "grid" or "grid paper". As in the previous method, add this image above your picture and set its Blend Mode to Multiply.  Again, the background should be pure white.

  • How do I superimpose a darkfield image on brightfield image and then chose color range from the darkfield and only keep what I selected in the color range?

    Hi
    In the previous version of photoshop I was able to superimpose images of brightfield and darkfield  insitu hybridization.  I would adjust both images to same size and resolution.  The darkfield image I would change the hue saturation to red so that now all the brighspots appeared red.  Then I would open a new photoshop image and then drag the brightfield first into the new panel and then drag the red darkfield image on the brightfield.  So now you can only see the red dark field layer on the top,  THen using range I would select the bright red spots on the dark field and press delete.  This would keep all the dark red spots on the brightfield image and all the other dark spots from the dark filed would disappear.  This way I would superimpose all the brightest red spots from the dark field image on the brightfield image and this way I would get red signals on the bluish brightfiled image.  I am unable to do this using photoshop on CS6. I am pasting the darkfiled image on the brightfield image (rather than dragging them) . Then using range when I choose the color range and then hit delete button I am unable to clear the unwanted dark field sections.  Can anybody tell me what I should do on the new Adobe photoshop 6 (64 bits).
    Thanks

    That question may be better answered with a goolge search.  It not something most Photoshop users would be doing. More science then normal image processing.

  • Using applet to select a part of an image and then save it

    Hi ,
    I want to use applet to select a part of an image and then save that particular selected part to a server. can anyone provide me a code for this. I have found codes on the sun site which help in uploading an image but I am having trouble in trying to select a part of the image.

    Sorry to get back to you so late, but I was away from my computer this afternoon.
    I'm not sure just what you are after. I do see that you have positioned the tree on the labels. I went to the web site for the label company, and their instructions are not too helplful.
    http://www.pixentral.com/show.php?picture=15sBkl9OZE9xSkHoLMxgwjTFv2VCg1
    I changed the white portion of 1 label to black - - this can be any color. To do this use the magic wand tool, tolerance=10 worked for me, then go to Edit>fill selection.

  • Long tone on start up and then goes into open firmware

    I stumbled upon the older posts here and thought I'd add a solution.
    http://discussions.apple.com/thread.jspa?messageID=6115258
    It was about an emac starting up with a long tone and the led flashes a few times and then goes into Open firmware, and when doing "mac-boot" in open firmware, it attempts to start, shows the apple symbol, the screen goes dim and crashes.
    It could be a bad power switch. To confirm - you can remove the emac case, be careful not to touch the motitor's picture tube. Find the cable to the power switch; with a small wire just touch together the black and red wires on the power switch cable (or it might be red and green). This will start the emac. If it boots up and runs OK then the power switch was bad. Not sure where to buy a new switch. I soldered and glued my switch together.
    <Edited by Moderator>

    Or, you'll find both the short pigtail-cabled nVidia graphics driven power switch and the version with a longer cable used with the AIT graphics driven models here* for a good deal less.
    Note that the later ATI version can actually be used with either product generation.
    *I may receive compensation as a result of parts or services being ordered by users specified at the link shown in this message.

  • I have created two related books in Lightroom 5 (Volumes 1 and 2) but my balance of page numbers is off. So I'd like to take some pages out of one book (complete with images) and paste them into the other. Is this possible?

    I have created two related Blurb books in Lightroom 5 (Volumes 1 and 2) but my balance of page numbers is off. So I'd like to take some pages out of one book (complete with images) and paste them into the other. Is this possible?

    Can you zip up a few of your GoPro images, upload them to dropbox.com and post a share link, here, so others can experiment with them, or do you mean this issue is global to all camera models?

  • BitLocker AutoUnlock second drive (after creating a new OS drive image and then encrypting)

    Hi
    Sorry, not sure which forum to put this question in, so I pick the Security.
    I have a question about the Bit Locker autounlock.
    I have been using BitLocker on Win7 and Win2008.  The autounlock has worked fine.  I have two separate disks (c:\ and e:\).  Using one USB I can unlock the c:\ and then it will auto unlock the second disk.  No problems.  
    However, I had to create a new OS image, and then re encrypt the c:\ (OS drive).  I used the same USB.  When the computer boots up, I can manually unlock the e:\, but it will not let me autounlock the e:\.  I keep getting the "element
    not found" message.
    Any help would be appreciative.
    Thanks

    Thank you for your reply...but that was not what I was looking for.
    I understand, and have setup, how to auto unlock the second drive.  My question is, does the second disk have to be present when the OS drive is encrypting?  Scenario:
    Set 1:
    Original OS Drive (OOD) - already encrypted
    Original Second Drive (OSD) - already encrypted and auto unlocked.
    Set 2:
    New OS Drive (NOD) - encrypted
    Original Second Drive (OSD) - encrypted previously and auto unlocked.
    Using Set 2, I have encrypted the NOD, and was able to auto unlock the OSD while it was present.  However, since I have multiple OSD's, I then inserted another OSD with the NOD.  I am able to unlock this drive, but not able to auto unlock it. 
    I get the dreaded "Element not Found" message.  I am assuming that when the OS drive is encrypting, it somehow attaches to the OSD....therefore it can auto unlock it.  If I add another OSD, it will not be able to auto unlock it.
    Hope this makes sense.  Thanks again.

Maybe you are looking for

  • PeopleSoft 8.53 Integration Error with Oracle SES

    My System Details are : Machine 1 Hostname : host1 Port : port1 Application : PeopleSoft 8.53 + HCM 9.2 + Oracle 11g OS : Windows 7 (64 Bit) Machine 2 Hostname : host2 Port : port2 Application :Oracle Secure Enterprise Search 11.1.2.2.0 OS : Windows

  • Problem with the custom field - enabling

    hi, i am using one customer field in the shopping card header , and using BBP_DOC_CHECK_BADI to issue an error message if this field is left empty. but the problem comes after the error message is issues , this field becomes disabled , and the user h

  • Cannot publish to .Mac

    Whenever I try to publish my new (updated) sites to .Mac I get an error message. (problem publishing file) I tried to publish again and again (at least five times), and I always get the same error message, but each time with a different file! I had t

  • Cannot set attribute..

    Hi.this is my code... TaskServiceImpl am = (TaskServiceImpl)AppModuleFactory.getAppModule("ljt.model.sas.TaskService", "TaskServiceLocal"); String sql = "SELECT STATUS_ID, CODE, DESCRIPTION FROM LJT_REF_SVJOB_STATUS"; ViewObject vo = am.getDBTransact

  • Can tool panels on righthand side be moved around?

    My workflow is probably different from others. But I'd like it if I could rearrange the tool panels on the righthand side so that the first thing I do is level the image. (see attached jpg). As it is now, I have to go into "Develop" then scroll all t