PrintJob() not displaying dynamically loaded images

Hi all,
I have an image-loading function given to me by a coworker
that I'm using to load and smooth external images. It works great.
However, when I go to print the slideshow I've created, I cannot
figure out how to get these images to display. I'll post some code
below, and I'm really hoping that there is a way to get this to
work. It's been driving me nuts for about two hours!
Thanks in advance!

Hi,
Thanks for the reply.I didn't really understand your reply.I am using commons.fileupload for uploading the image.Attaching teh code fragment for that.Could you please go through itFileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
List items = null;
try {
items = upload.parseRequest(req);
// Create a factory for disk-based file items
System.err.println("items: " +items);+
+} catch (FileUploadException e) {+
+e.printStackTrace();+
+}+
+Iterator itr = items.iterator();+
+while (itr.hasNext())+
+{+
+FileItem item = (FileItem) itr.next();+
+if (item.isFormField())+
+{+
+if(item.getFieldName().equals("First Name"))+
+fName = item.getString();+
+}+
+else+
+{+
+try+
+{+
+String itemName = item.getName();+
+Random generator = new Random();+
+int r = Math.abs(generator.nextInt());+
+String reg = "[.*]";+
+String replacingtext = "";+
+System.err.println("Text before replacing is:-"+ itemName);
Pattern pattern = Pattern.compile(reg);
Matcher matcher = pattern.matcher(itemName);
StringBuffer buffer = new StringBuffer();
while (matcher.find())
matcher.appendReplacement(buffer, replacingtext);
int IndexOf = itemName.indexOf(".");
String domainName = itemName.substring(IndexOf);
System.err.println("domainName: " +domainName);+
+String finalimage = buffer.toString()+ "_" +r+ domainName;
System.err.println("Final Image===" +finalimage);+
+//Writing file to disk+
+File savedFile = new File("C:/Zach_Academic/Code/web/Images/Actors/"+ finalimage);
item.write(savedFile);Hope this time my keyboard didn't made any issue.
Thanks,
Zach.

Similar Messages

  • Problem displaying dynamically loaded text in Flash CS3

    I created a Flash CS3 application that does not display
    dynamically loaded text (from internal AS3 scripts) on 3/6 of my
    client's computers. All computers run IE 6 and Flash Player 9. I
    cannot replicate the problem on any computer in my department. The
    problem seems to be related to Flash Player 9 or a browser
    setting/IT restriction. Has anyone encountered this? If so, have
    you found a solution?
    If I cannot find a solution, then I will need to almost
    completely redo the application.
    One slightly insane idea I have considered is to, if
    possible, convert dynamically loaded text to an image real-time. Is
    that possible?
    Btw, I have created a font in my library. Should I try
    manually embedding the font from the Properties menu and selecting
    all characters?
    Thanks in advance.

    yes, even though you may be using a font from the library,
    you still have to specify that each text field that uses that font
    embeds the font, and you'll need to select all characters(well not
    all, unless you require all the different scripts of the world -
    upper-case, lower-case, numerals and punctuation usual suffices).
    I bet if you checked, the computers where the font did not
    appear did not have the font on their system.
    Good luck
    Craig

  • Dynamically loading images: UI Loader issue

    I posted this last week, but did not show good examples to get help. Admittedly, I am new to flash, so this may be a bit elementary, so my apologies in advance. I am trying to dynamically load images through the UI Loader component. Attached are the errors I get, and although I think that the coding is close to correct, when I publish, it just flashes up then restarts the movie... any ideas? Thanks in advance.

    there's a problem attaching things to this forum.  so, nothing is attached.
    can you copy and paste your error messages to this forum?

  • Alpha transparency borders on dynamically loaded images for use with textures

    Hi there folks. Well, I have been beating my head over this
    and am hoping one of you can help me out.
    Essentially I have 16bit images that are loaded into my
    shockwave application at run-time. These images are user defined
    which means that I will not know their size ahead of time. Once the
    images are loaded I then create textures and apply them to various
    shaders. Ok, all of this works just fine. What I need to do though
    is create an alpha transparent border around the images, so when I
    apply them to their surfaces I only see the image and nothing
    around it. I am doing this because these images will only appear at
    specific parts on a surface, textureRepeat will be false, and many
    models will be stacked in the same exact location using the same
    model resource. I have everything working, but I cannot figure out
    the alpha part for the life of me. Also, when I test the alpha
    based image by itself it works just fine. It is not until I try and
    combine the 16bit (converted to 32bit at run-time) image that I run
    into problems.
    I have tried:
    - Creating a 32bit alpha image in Fireworks with a
    transparent border and a black rect for the inside. I then copy the
    dynamic image over the alpha image (only after going from 16bit to
    32bit in imaging Lingo) and leave a little room at the edges for
    the transparency. Well, I get a crazy amount of streaks here even
    when I try to up the trans border by around 24 pixels on each side.
    - Using another similiar alpha based image as a mask with
    copyPixels and extractAlpha/setAlpha like this... (code is a little
    rough here)
    newImage = new(#bitmap)
    newImage.name = "place_Test"
    newImage.image = member("place").image
    newAlpha = new(#bitmap)
    newAlpha.name = "AHH"
    newAlpha.image = image(newImage.image.width + 24,
    newImage.image.height + 24, 32)
    newAlpha.image.useAlpha = true
    newAlpha.image.copyPixels(member("vase").image,
    newAlpha.image.rect, member("vase").image.rect)
    newAlphaInfo = newAlpha.image.extractAlpha()
    newAlpha.image.useAlpha = false
    --reverse dark to light
    iAlphaReverse = image(newAlpha.image.width,
    newAlpha.image.height, 8, #grayscale)
    iAlphaReverse.fill(iAlphaReverse.rect, rgb(0,0,0))
    iAlphaReverse.copyPixels(newAlphaInfo, iAlphaReverse.rect,
    newAlphaInfo.rect, [#ink : #reverse])
    --newAlphaInfo.copyPixels(iAlphaReverse, newAlphaInfo.rect,
    iAlphaReverse.rect, [#ink:#subtractpin])
    newAlphaMask = iAlphaReverse.createMask()
    rescaleAbs(newImage, newImage.image.width,
    newImage.image.height, "place_Test", 32)
    destImage = member("place_Test").image.duplicate()
    destImage.fill(destImage.rect, rgb(0,0,0))
    newAlpha.image.useAlpha = false
    destImage.copyPixels(newImage.image, newImage.image.rect,
    newImage.image.rect, [#maskImage:newAlphaMask, #ink:#add])
    destImage.setAlpha(iAlphaReverse)
    destImage.useAlpha = true
    member("place_Test").image = destImage
    I apologize for the messy code. I have cut and pasted from
    all over the place and am getting confused. In any case, I think I
    am making this harder then it needs to be and hope someone can
    help.
    Thank you in advance,
    Dave

    Hi, you can try using other texture layer as mask on the same
    shader. As usually you create the texture from a dynamic loaded
    image, then apply this texture to the shader on the texture list
    index 1 (textureList[1]). Next part does the job, create other
    texture from a 32 bits image with the alpha information and fill
    all pixels with white color, this is very important because the
    second texture layer will be multiply with the first texture layer.
    This texture set its render format to rgba8888. Apply the mask
    texture to the same shader at texture list index 2, verify that the
    blendFunctionList index 2 is #multiply.
    I include the code of a project that use this masking
    approach:
    property pMember
    property pEarthSphere
    property pNightSphere
    property pLastTransform
    on beginSprite me
    pMember = sprite(me.spriteNum).member
    me.setupWorld()
    end
    on setupWorld(me)
    pMember.resetWorld()
    repeat with i = pMember.light.count down to 1
    pMember.deletelight(i)
    end repeat
    vEarthModelResource = pMember.newModelResource("EARTH MODEL
    RESOURCE", #sphere)
    vEarthModelResource.radius = 50.000
    vEarthModelResource.resolution = 20
    vEarthTexture = pMember.newTexture("EARTH TEXTURE",
    #fromCastMember, member(3,1))
    vEarthShader = pMember.newShader("EARTH SHADER", #standard)
    vEarthShader.emissive = color(255,255,255)
    vEarthShader.flat = TRUE
    vEarthShader.transparent = FALSE
    vEarthShader.textureList[1] = vEarthTexture
    pEarthSphere = pMember.newModel("EARTH MODEL",
    vEarthModelResource)
    pEarthSphere.shaderList = vEarthShader
    vNightModelResource = pMember.newModelResource("NIGHT MODEL
    RESOURCE", #sphere)
    vNightModelResource.radius = 50.2000
    vNightModelResource.resolution = 20
    vNightTexture = pMember.newTexture("NIGHT TEXTURE",
    #fromCastMember, member(4,1))
    vNightTexture.quality = #lowFiltered
    vNightTexture.nearFiltering = FALSE
    vNightTexture.renderFormat = #rgba8880
    vNightShader = pMember.newShader("NIGHT SHADER", #standard)
    vNightShader.emissive = color(255,255,255)
    vNightShader.flat = TRUE
    vNightShader.transparent = TRUE
    vNightShader.textureList[1] = vNightTexture
    vMaskNightTexture = pMember.newTexture("MASK NIGHT TEXTURE",
    #fromCastMember, member(6,1))
    vMaskNightTexture.renderFormat = #rgba8888
    vNightShader.textureList[2] = vMaskNightTexture
    vNightShader.textureModeList[2] = #wrapPlanar
    pNightSphere = pMember.newModel("NIGHT MODEL",
    vNightModelResource)
    pNightSphere.shaderList[1] = vNightShader
    pNightSphere.parent = pEarthSphere
    end
    on exitFrame(me)
    pEarthSphere.rotate(0.0,0.1,0.0)
    me.moveMaskNightTexture()
    end
    on moveMaskNightTexture(me)
    vRotationVector = - pEarthSphere.transform.rotation
    pNightSphere.shaderList[1].wrapTransformList[2].rotation =
    vRotationVector
    end

  • Safari not displaying web site image

    I have a website that is suddenly not displaying the header image in Safari and IE5.2.
    I have my suspicions that it is due to a JavaScript from Google to run their Analytics programme which I installed a few days ago, (and will shortly remove it to confirm the suspicion or otherwise.)
    But first I wish to check if other people are experiencing the same problem, or if it is localized to my computer. (Need to be able to inform Google if their script is the fault and affects all Safari users or only some versions. So please check the site and report results here, including your Safari version. Mine is Safari 1.3.2 (v312.6) and Internet Explorer 5.2 for Mac.
    The site is http://www.paintmaking.com
    What I see in Firefox, Netscape, Opera, and Camino is a flash title over a colored background with a photo.
    Thats what I saw in Safari until recently too. But suddenly all I now see in Safari and IE is the flash title over a gray background, no photo, and above the menu bar a very thin strip of color (about 1mm, 1/16in). The sidebar images are unaffected (and those images at the side work fine in all the browsers), it is just the header.
    Can you please tell me what you see and the browser version?
    Tony

    Thank you to everyone who has reported what you are seeing on my website. Now I need some help to troubleshoot the problem. So far I am confused as to where the problem lays let alone what the problem might be.
    I need guidance as I am running out of ideas for troubleshooting. Are there any files that I should try trashing?
    Could the problem lie in my Flash player perhaps (how do I test this?
    Updates:
    I can see only a gray color behind my flash title on http://www.paintmaking.com in Safari 1.3.2 (v312.6) and Internet Explorer 5.2.3 (5815.1). What should be there is a colored header image.
    I have established that other people can see the image correctly, including on the same builds of Safari and IE and on the same OS (10.3.9). An exception is someone using Shiira who can only see gray in Shiira, but sees colors in other browsers including Safari.
    On my computer Netscape 7.2, Firefox, Mozilla, Opera and Camino can all see the image correctly.
    Safari and IE have the same problem displaying the image on all the accounts on my eMac.
    I have: cleared cache with no improvement, checked Safari Preferences (Java enabled, JavaScript enabled, and 'display images as pages open' is checked.
    I have removed the software that I installed recently. (MacTracker)
    I have removed a piece of JavaScript added recently (from Google to facilitate their Analytics programme)
    The only major thing I have done lately that is out of the ordinary is to Clone my OS X hard drive to an external drive using SuperDuper.
    I don't seem to be having problems with other websites.
    So how can this be? If the problem is in my computer why only the one site affected? (I checked several sites) Yet if the problem is with the site then why can other people see the site correctly?
    (A very puzzled) Tony.
    eMac + iBook 12 inch (10.3.9 on both)   Mac OS X (10.3.9)   PowerPC G4 1 GHz 1 GB SDRAM + (iBook) PowerPC G3 500 MHz 384 MHz SDRAM

  • Thumbnail not displaying when attaching image to email

    Suddenly my Mac is not displaying a thumbnail image when I go to attach an image to an email. I have fixed permissions, restarted and relaunched Finder, but it's still not displaying. I've also unchecked and rechecked "show icon preview" in View Option while in the Finder. Anyone know any solutions?

    Couple of ideas...
    • After you have attached the image and it is showing in the email, right-click or Control-click the displayed image. From the menu that appears, select "View as icon". Then send it as a test.
    • Once the image has been attached, fiddle with the Image Size dropmenu choices - this dropmenu is located in the lower right corner of the New Message window after adding the image.

  • Some JPG images, stored in DB, do not display on screen/image item.

    Hi friends,
    I have a form to save and retrieve images (JPG, GIF, TIF) to and from DB, using WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB and CLIENT_IMAGE.WRITE_IMAGE_FILE respectively.
    It’s working fine, but with few JPG images, it stores in DB but do not display on screen/image item.
    Secondly, if I try to retrieve and write this JPG to OS (using CLIENT_IMAGE.WRITE_IMAGE_FILE), it prompts error “FRM-47101: Cannot write image file”.
    Environment:
    Forms [32 Bit] Version 10.1.2.0.2
    OS XP Pro 2002 SP3
    Oracle DB 11g Enterprise Edition Rel. 11.1.0.7.0 - 64bit
    Any help will be highly appreciated.

    Hi,
    I have done a workaround here, which worked for me.
    My requirement is to direct save images in DB. So my system was just saving images without knowing if picture would display on form or not later.
    I created a (non-DB) image item on form and added a code (CLIENT_IMAGE.READ_IMAGE_FILE) to place image in this image item, if it successfully display image then save image directly in DB using code (WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB).
    Note: - If CLIENT_IMAGE.READ_IMAGE_FILE fails it raises exception and it means image has invalid format/internal data header and system does not save image in DB.
    Now I have a kind of a filter to stop saving pictures which do not display later on form. :)
    Edited by: user12173428 on 29/09/2011 16:38

  • ITunes does not display my feed image as defined in the itunes:image tag

    I set up a feed using a custom PHP script I wrote. This script creates an rss file that I will submit to apple once I have everything ironed out. right now the only thing left to fix is the missing feed image. I checked the xml and for the image I have:
    *<itunes:image href="http://www.roaringbrookbaptistchurch.org/podcasts/feed/images/feedIcon.jp g" />*
    I checked the image in a browser and it indeed exists and displays as expected, this is a test image not the final one. It is a 600x600 jpg. I am previewing my podcast in itunes using a direct link to this rss file.
    Why is my image not showing up? I get some other image, not sure where it comes from, instead.

    When you subscribe to a podcast feed, either from the Store or - as I assume you have done - from the 'Advanced' menu, the image referred to in that tag is not displayed. The images which are seen on selecting each episode have to be embedded in the actual media file: please see this page -
    http://homepage.mac.com/rfwilmut/notes/faq.html#coverart
    You will not see the image referenced in the feed until the podcast is actually accepted and shows in the Store.

  • How to dynamically load images into Flash

    I have a movie clip on the stage that I want to dynamically
    load images into (that constantly change), how would I go about
    doing this? Thanks.

    Use the Loader class to load in images.
    Then use addChild to add the Loader class into your MovieClip
    on the stage.
    As far as &amp;quot;constantly change&amp;quot; what
    do you mean by that? You could use setInterval, ther enterFrame
    event, or any other means to trigger a new image to be loaded into
    the Loader instance.
    Finally, you can use the Tween class to create some nice
    effects for the images (fade it, blur in, photo blend, masks,
    etc)

  • Photoshop elements 11 is not launching or loading images (photo editor)

    Photoshop elements 11 is not launching or loading images (photo editor)

    If you haven't committed to PSE12, yet, then you should be able to download PSE/PRE11 from this website.  Be sure to follow the Very Important Instructions to set the Adobe authorization cookie, because the downloads actually come from Adobe:
    http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm l

  • Dynamically loaded images cached?

    We have an xml feed that is refreshed every hour. According
    to the xml file, we dynamically load an image into an html text
    field each time someone hits our page. All of the images have been
    recently updated, but the old ones are still appearing? We use the
    swf?nocache=randomnumber convention to make sure the swf file
    itself isn't cached, but is there anything we can do to clear out
    the cache of dynamically loaded images? If there isn't anything we
    can do, will these all eventually refresh themselves? This is how
    the html is generated where "twcImage[0]" is the image in question.
    Thanks!

    Do the same random number for the images.
    twcImage[0] + randomnumber
    Dan Smith > adobe community expert
    Flash Helps >
    http://www.smithmediafusion.com/blog/?cat=11
    http://www.dsmith.tv
    "Wolli World" <[email protected]> wrote in
    message
    news:fvvcrc$k9o$[email protected]..
    > We have an xml feed that is refreshed every hour.
    According to the xml
    > file,
    > we dynamically load an image into an html text field
    each time someone
    > hits our
    > page. All of the images have been recently updated, but
    the old ones are
    > still
    > appearing? We use the swf?nocache=randomnumber
    convention to make sure
    > the swf
    > file itself isn't cached, but is there anything we can
    do to clear out the
    > cache of dynamically loaded images? If there isn't
    anything we can do,
    > will
    > these all eventually refresh themselves? This is how the
    html is
    > generated
    > where "twcImage[0]" is the image in question. Thanks!
    >
    > twcTarget.text = "<img align='left' hspace='5'
    vspace='0' src='
    http://" +
    > _root.server + "/rss/weather/images/" +
    > twcImage[0] + "'>" + "<condition>" + ... and so
    on
    >

  • Get width and height of a dynamically loaded image once it's done loading?!

    hello : :
    well... i'm taking my first shots at flex after programming
    in flash for a year now. it's been fun and i've been picking up on
    things pretty well (or so i think), but i come across something
    today that i used to be able to do in my as2 programming and don't
    know how to do in as3...
    in flex, i'm loading an image into an image control (by using
    "myImgControl.load(urlString)"). i have a "complete" parameter on
    the image control that calls a function just fine after the image
    is loaded, but if i try and check the hight and width of the loaded
    image once it loads, it comes back as zero. how can i get the
    height and width of the image after it's loaded?!
    in flash/as2 i used to do this little trick/work-around i
    found in a forum (kirupa.com, i think) to find out the width and
    height once the loaded image listener checked the loading process
    and came back "complete"... in the code below, "imgLoader" is the
    movieClip the image was loaded using
    imgLoaderListener.loadClip(urlString, imgLoader).
    quote:
    iTot = imgLoader.getBytesTotal();
    iLoad = imgLoader.getBytesLoaded();
    if (iLoad == iTot && iTot > 4) {
    imgH = imgLoader._height;
    imgW = imgLoader._width;
    that all make sense?!
    basically, it's as simple as this: i need to find something
    similar to the above for as3 that will tell me the width and height
    of a dynamically loaded image after it's done loading...
    so there ya have it. i appreciate any help any of you can
    throw my way! thank you so much for even reading this!
    : : michael

    I assume you have probably already figured this out, but just
    in case, there should be an event to listen for after which you can
    get the height and width information successfully. I can't remember
    the exact name, however. Experiment and see which one works
    time-wise.

  • Indesign CC does not display linked PDF image on screen

    On Mac1 (10.6.8) When I imported a PDF file into Indesign CC 9.1 as a linked image - the image would come in as usual, however the image would not appear on my screen. Only a blank page box.
    I can see the thumbnail image of the imported PDF in the links palette correctly.
    However, on my page it appears as a blank box.
    Selected Hi-res preview, and still it appears as a blank box.
    I export to PDF, and the image is there as it should be on the exported PDF.
    I tried the same image on Mac2 (10.8.3) with Indesign CC.
    The imported image appears correctly on the page. (no blank box)
    I saved that file and opened it on Mac1 that is having the problem displaying the image.
    Mac1 again does not display the image, instead it is a blank box.
    Tried the same image import in Cs6. No issue on either mac1 or mac2
    What could be causing the imported PDF not to display on the page in Indesign CC?
    Has anyone else come across this problem?

    Hi
    Are you still facing the same issue ?
    Please refer to these threads for steps that you can try :
    Edge Animation not working properly
    Edge Animate not working in Muse Browser Preview, But works in Edge Preview
    http://tv.adobe.com/watch/learn-adobe-muse-cc/integrating-adobe-edge-animate-graphics/
    Thanks,
    Sanjit

  • Thumbnails do not display for some images

    I have a large library with over 65,000 images.
    In some albums and projects the images fail to display in the browser....see here for an screenshot
    http://picasaweb.google.be/lh/photo/tOj7FY4lclLxr8YMEBV8ZA?authkey=_Zrhrl8QDyA
    If I go into filmstrip view I can make them appear but this does not seem to stick...ie when I quit and restart aperture the same images fail to display.
    I have tried selecting and "generate thumbnails" as well as "update previews" and whilst it chunters away working on it for quite a while the images stll persist in not appearing.
    Suggestions?

    Sorry to hear that....I still have no really good news. What I did notice is that if I enlarged the thumbnails above a certain size then they all displayed....but once they dropped below a certain size the ones that did not display, stopped displaying!
    This was so boring that I deleted the entire project (after doing an export, including masters) and then imported the originals again.
    Now everything works fine...but of course I have lost all the tagging and adjustments that I did since importing....so I am not happy at all....but at least I do have a working library.

  • Displaying dynamically changing image: a problem with JLabel.

    Hello! I use NetBeans 5.5 and I develop my GUI with Matisse. I'm rather a beginner in developing GUIs with this editor...
    I'd like to display a dynamically changing image. The idea is: GUI shows the image, that is modified as some computations run in a different thread. App will be run on a single machine.
    I'm trying to display the image as a label's icon. The problem is that my app's frame can be resized - and when it is, the label also resizes. When the label is resized, the image should also be resized - the image should always be of the same size as the label. The problem? I noticed, that it works only when I make my app's bigger. When I try to lower its dimensions, the label's dimensions remain the same. Why the label don't make its size smaller?
    My code works as follows: when app's main frame is resize, the panel (the one, that the label is placed in) is also resized. And, since the label is in the panel, it (should) also be resized. So I wrote all the resize-events handlers (therefore I know that the resize event is sent when my app's frame is resized, and when the panel is resized - but the label is resized only when it grows bigger). In this methods I modify the image displayed in the label (I resize the image).
    Or, perhaps, there is some other way to show a (dynamically changing) image with Swing... I chose JLabel, because I didn't want to write my own JComponent. JLabel can display image and that is all I need. The problem is: when the label grows bigger, I create a new, bigger image (icon). Why my label don't get smaller (the resize event isn't even sent)?

    There is no component that dynamically resizes an image. You need to create your own. Something like this:
    JComponent component = new JComponent()
         protected void paintComponent(Graphics g)
              //  Scale image to size of component
              g.drawImage(yourImage, 0, 0, getWidth(), getHeight(), null);
    };

Maybe you are looking for

  • Problem in Sales Order with specific condition type.

    Hello Experts, I'm facing a problem in sales order creation for a specific condition type. the actual scenario is as below, We have created a new condition type for special discount.This condtion type is applicable only for specific sales channels.Al

  • Acrobat 9 Portfolio can't be printed by Reader 9

    I have addressed this issue with Adobe Support and have either received references to KB documents that are totally unrelated, or have been told to just uninstall Reader 9 and install Reader 8, since Reader 8 works ok. In my opinion that answer is un

  • 970a-g46 am3+ cable connection questions

    Hi all, I'm a first time computer builder and am in the process of building my own rig. I have MSI AMD 970a-g46 am3+ mobo and cool master elite 431 case. 1) I can't seem to find where on the mobo to connect the speaker for the post beep test. I've tr

  • Itunes wont start unknown error (-69) and cyclic redundancy check

    I use an ipod shuffle and am on itunes 6 (or 6.1 maybe) on my windows compaq presario laptop. I was burning a number of disc from itunes and all seemed ok. The shut the computer down and the next day came to do the same thing and itunes wouldn't star

  • Ipod freezes on syncing and won't unfreeze until battery dies - HELP

    my friend has an 80 gig ipod classic and uses Windows Vista on a Gateway PC. When she syncs her ipod, it freezes (the ipod) and says "corrupted." When she unplugs the ipod from the computer, it is still frozen and will not unfreeze until the battery