Images become corrupted after uploading

Hello i'm trying to make an upload bean that uploads files form client PCs to the server, i'm using jdk 1.4 and tomcat 4.0.
i made a modification to "Budi Kurniawan" code from "http://www.onjava.com/pub/a/onjava/2001/04/05/upload.html"
and the package is working very well only with text files.
when i tried to upload images or exe . i found the files corrupted. i compaired the original files with the uploaded one and they was the same in size.
i think the problem is with the way i process the content type of the file.
please if u have any ideas to modify this code to enable it to upload images and exe please post ur reply.
the package name is "michael.web.upload" this package should be able to handle a form with mulitble input types and mulitble files to upload at one time
the package contain two classes "FileUpload" provides some info about the uploaded file and "MultiPartParser" the parser that do the upload
File Upload Class
package michael.web.upload;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2005</p>
* <p>Company: </p>
* @author Michael Ageeb
* @version 1.0
public class FileUpload {
  public static final int SAVE_NAME = 0;
  public static final int PARAM_NAME = 1;
  public static final int FILE_NAME = 2;
  public static final int ERROR_FREE = 3;
  public static final int ERROR_IO = 4;
  public static final int ERROR_MAXSIZE = 5;
  private String fileName, savePath, paramName, saveName, MIMEType;
  private long size, maxSize;
  private int saveNameMethod, errorCode;
  private Throwable th;
  public FileUpload(String paramName, String savePath) {
    size = 0;
    maxSize = Long.MAX_VALUE;
    this.paramName = paramName;
    this.savePath = savePath;
    saveName = null;
    fileName = null;
    saveNameMethod = FILE_NAME;
    errorCode = ERROR_FREE;
    th = null;
    this.MIMEType = "text/plain";
  void setMIMEType(String mime) {
    this.MIMEType = mime;
  public String getMIMEType() {
    return this.MIMEType;
  void setThrowable(Throwable th) {
    this.th = th;
  public Throwable getThrowable() {
    return this.th;
  public void setSaveNameMethod(int sn) {
    if (sn < 0 || sn > 2)return;
    saveNameMethod = sn;
  public int getSaveNameMethod() {
    return this.saveNameMethod;
  void setErrorCode(int ec) {
    if (ec < 3 || ec > 5)return;
    this.errorCode = ec;
  public int getErrorCode() {
    return errorCode;
  public String getFileName() {
    return fileName;
  public long getMaxSize() {
    return maxSize;
  public void setMaxSize(long maxSize) {
    if (maxSize < 0)return;
    this.maxSize = maxSize;
  public long getSize() {
    return size;
  public void setSavePath(String savePath) {
    this.savePath = savePath;
  public String getSavePath() {
    return savePath;
  public String getSaveName() {
    switch (this.saveNameMethod) {
      case FILE_NAME:
        return this.fileName;
      case PARAM_NAME:
        return this.paramName;
      case SAVE_NAME:
        return this.saveName != null ? this.saveName : this.fileName;
    return null;
  public void setSaveName(String saveName) {
    this.saveName = saveName;
  public String getParamName() {
    return paramName;
  void setFileName(String fileName) {
    this.fileName = fileName;
  void setSize(long size){
    this.size=size;
}MultiPartParser Class
package michael.web.upload;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2005</p>
* <p>Company: </p>
* @author Michael Ageeb
* @version 1.0
public class MultiPartParser {
  private Hashtable fields;
  private Hashtable files;
  private String defSavePath;
  private LinkedList parameters;
  public MultiPartParser(String savePath) {
    this.defSavePath = savePath;
    parameters = new LinkedList();
    fields = new Hashtable();
    files = new Hashtable();
  public void addFileUpload(FileUpload fu) {
    files.put(fu.getParamName(), fu);
  public FileUpload getFileUpload(String param) {
    return (FileUpload) files.get(param);
  public Enumeration getFilesNames() {
    return files.keys();
  public Enumeration getFieldsNames() {
    return fields.keys();
  public Enumeration getPatameterNames() {
    return Collections.enumeration(parameters);
  boolean addParameter(String param) {
    if (parameters.contains(param))return false;
    parameters.addLast(param);
    return true;
  public String getField(String param) {
    ArrayList arr = (ArrayList) fields.get(param);
    if (arr == null)return null;
    return (String) arr.get(0);
  public String[] getFieldValues(String param) {
    ArrayList arr = (ArrayList) fields.get(param);
    if (arr == null)return null;
    String a[] = new String[arr.size()];
    for (int i = 0; i < a.length; i++) a[i] = (String) arr.get(i);
    return a;
  private String getFilename(String s) {
    int pos = s.indexOf("filename=\"");
    String filepath = s.substring(pos + 10, s.length() - 1);
    // Windows browsers include the full path on the client
    // But Linux/Unix and Mac browsers only send the filename
    // test if this is from a Windows browser
    pos = filepath.lastIndexOf("\\");
    if (pos != -1)
      return filepath.substring(pos + 1);
    else
      return filepath;
  private String getContentType(String s) {
    int pos = s.indexOf(": ");
    return s.substring(pos + 2, s.length());
  public void parse(HttpServletRequest request) throws IOException {
    ServletInputStream in = request.getInputStream();
    byte[] line = new byte[128];
    int i = in.readLine(line, 0, 128);
    if (i < 3)
      return;
    int boundaryLength = i - 2;
    String boundary = new String(line, 0, boundaryLength); //-2 discards the newline character
    while (i != -1) {
      String newLine = new String(line, 0, i);
      if (newLine.startsWith("Content-Disposition: form-data; name=\"")) {
        if (newLine.indexOf("filename=\"") != -1) {
          int pos = newLine.indexOf("name=\"");
          String paramName = newLine.substring(pos + 6,
                                               newLine.indexOf("name=\"",
              pos + 6));
          FileUpload fu;
          if (files.contains(paramName)) fu = (FileUpload) files.get(paramName);
          else {
            fu = new FileUpload(paramName, defSavePath);
            files.put(paramName, fu);
          addParameter(paramName);
          fu.setFileName(getFilename(new String(line, 0, i - 2)));
          //this is the file content
          i = in.readLine(line, 0, 128);
          fu.setMIMEType(getContentType(new String(line, 0, i - 2)));
          i = in.readLine(line, 0, 128);
          // blank line
          i = in.readLine(line, 0, 128);
          newLine = new String(line, 0, i);
          ByteArrayOutputStream pw = new ByteArrayOutputStream();
          //          FileOutputStream pw=new FileOutputStream((fu.getSavePath() == null ? "" : fu.getSavePath()) +
          //                       fu.getSaveName());
          long count = 0;
          while (i != -1 && !newLine.startsWith(boundary) &&
                 count <= fu.getMaxSize()) {
            // the problem is the last line of the file content
            // contains the new line character.
            // So, we need to check if the current line is
            // the last line.
            i = in.readLine(line, 0, 128);
            if ( (i == boundaryLength + 2 || i == boundaryLength + 4) // + 4 is eof
                && (new String(line, 0, i).startsWith(boundary))) {
              pw.write(newLine.getBytes(), 0, newLine.length() - 2);
              count += newLine.length() - 2;
            else {
              pw.write(newLine.getBytes(), 0, newLine.length());
              count += newLine.length();
            newLine = new String(line, 0, i);
          pw.close();
          RandomAccessFile rf = new RandomAccessFile( (fu.getSavePath() == null ?
              "" : fu.getSavePath()) + fu.getSaveName(), "rw");
          byte[] bytes = pw.toByteArray();
          rf.write(bytes, 0, bytes.length);
          rf.close();
          if (count > fu.getMaxSize()) {
            File f = new File( (fu.getSavePath() == null ? "" : fu.getSavePath()) +
                              fu.getSaveName());
            f.delete();
            fu.setErrorCode(FileUpload.ERROR_MAXSIZE);
          else {
            fu.setSize(count);
        else {
          //this is a field
          // get the field name
          int pos = newLine.indexOf("name=\"");
          String fieldName = newLine.substring(pos + 6, newLine.length() - 3);
          //System.out.println("fieldName:" + fieldName);
          // blank line
          i = in.readLine(line, 0, 128);
          i = in.readLine(line, 0, 128);
          newLine = new String(line, 0, i);
          StringBuffer fieldValue = new StringBuffer(128);
          while (i != -1 && !newLine.startsWith(boundary)) {
            // The last line of the field
            // contains the new line character.
            // So, we need to check if the current line is
            // the last line.
            i = in.readLine(line, 0, 128);
            if ( (i == boundaryLength + 2 || i == boundaryLength + 4) // + 4 is eof
                && (new String(line, 0, i).startsWith(boundary)))
              fieldValue.append(newLine.substring(0, newLine.length() - 2));
            else
              fieldValue.append(newLine);
            newLine = new String(line, 0, i);
          //System.out.println("fieldValue:" + fieldValue.toString());
          if (addParameter(fieldName)) {
            ArrayList arr = new ArrayList();
            arr.add(fieldValue.toString());
            fields.put(fieldName, arr);
          else {
            ( (ArrayList) fields.get(fieldName)).add(fieldValue.toString());
      i = in.readLine(line, 0, 128);
    } // end while
}All what you want to do in ur jsp page and u will find the files in ur C:/
<%@ page import="michael.web.upload.*" %>
<%
MultiPartParser parser=new MultiPartParser("C:/");
parser.parse(request);
%>

Hellooooooooooo,
Could anybody post a code that is able to upload images. (i mean raw code without using fancy controlos)

Similar Messages

  • Disk image become corrupt after copied to portable hard drive

    Every time I copy a .DMG image to my portable Hard Drive it become corrupted; and when I try to open the .DMG I get the error "Image Data Corrupted". I have formated the drive several times, I tried OS X Journaled, Fat32, both with GUID and MBR. I have verified and repaired the hard drive in disk utility but I am still getting this error. I am running 10.8.2.

    Burn a Repair CD to boot from:
    http://www.howtogeek.com/howto/5409/create-a-system-repair-disc-in-windows-7/
    After booting from it try the restore from Image:
    http://www.howtogeek.com/howto/7702/restoring-windows-7-from-an-image-backup/
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • OS X partition becomes corrupt after switching from Bootcamp

    So I've had to reinstall os x 10.9.1 no less than three  times this week and multiple times before in the past after switching between os x and windows 8.1. This usually happens after I've been using windows for a prolonged period then switch back to os x but it happened today after reinstalling os x from a time machine backup just yesterday. I'll switch between the two and os x becomes corrupt and begins the loading bar sequence after selecting the os x partition via the refit boot manager. I tried repairing the partition using disk utility from the repair partition and an external installation of os x 10.9.1 but every time the disk becomes corrupt and needs to be wiped and reinstalled or install a time machine backup. I've lost count of how many times I've had to do this and to make things even worse both of my external disks have become corrupt after being disconnected for two days while I sort this mess out. Does anyone else have similar issues or can locate an issue somewhere?

    Yeah I reinstalled osx 10.9.1 and installed all my apps, put everything back then used bootcamp to create a partition for windows then used wineclone to install my windows 8.1 backup. I jumped from windows > osx > windows > osx inside an hour to move around a few things and I forgot verify bootcamp after I installed the backup and that last time I booted to osx it was corrupted. I used disk utility from my external installation and the recovery partition and both times they need repaired which only came up with the backup and wipe notification window. There have been two occasions where I was able to fix the osx partition from my external osx installation and continue using osx quite perfectly but usually the partition becomes un-mountable after it fails to repair. Usually when this has happened the twenty something times before it's after a prolonged period of a few weeks using windows.
    I'm using refit boot manager and paragon NTFS 11 which may be the only software I've installed that could be corrupting the boot.
    SMART status is verified

  • JPG files become corrupt after Exporting in LR 3

    Does anyone have any idea what would cause
    my JPG files to be corrupt after I export my edited Raw images in LR3?  There are no problems with the Raw file, but once I edit them, apply what ever settings to them in LR I need, I export them as JPG to the same hard drive but in a sub folder where the raw files are, they will not open in photoshop or anywhere else. They are corrupt or lacking data????   When I upload them to my proofing website, there are colored streaks all through the image.  Now, I noticed that when I go into that folder of RAW images, and delete the .xmp files, I have to start over, but it fixes the problem.  So, now, I can't use .xmp sidecar files to save my editing. I'm fairly new to LR, so any suggestions would be great. I did recently upgrade my system to OS windows 7.  Everythign was fine till I had to reinstall everything on my computer...and I also changed hard drives. I upgraded to a Terabyte drive moving all my images from a 500G to the terabyte.  Could that cause my sidecar files to be corrupted?????
    Thank you!!!!!

    I doubt that the XMP files have anything to do with this, as Lightroom doesn't use these files when it creates an exported file.
    It sounds like your hardware may be the culprit; these types of corrupt files are often caused by a failing hard drive. Some corruption may have happened in the transfer from one hard drive to another; or the new hard drive has some sort of problem.
    Can you hook up the old hard drive again and see what happens to the photos there? Open one of them and compare it to the photo on the new hard drive.

  • Template header images not visible after upload

    Thanks in advance. 
    Using Dreamweaver CS5 on a Macbook Pro 10.7.5.  GoDaddy web host.
    DW novice however I am using a book to help me along but am stuck.  
    Because I am new to this, I am using a VERY simple template. 
    Link to my site: http://www.lifeafterpharma.biz
    I did search this site and others for answers
    PROBLEM: 
    My template looks great when I preview it in all of the browsers but after I upload it, pictures within the body of the site do not appear and NONE of the header images appear.   
    I have made certain that I uploaded all of the pictures. 
    It's supposed to look like this:
    Original Template:
    After my modifications and this is the image I see when I use the DW browser preview --
    This is the original template and what the site ACTUALLY looks like in any browser after upload.  When I upload my modified website, my newly added pics will appear but none of the template images appear. 
    Thanks in advance for your help!

    Site Defintion:
    First things first. You must set up a Site Definition in DW or you're going to have more problems than you can handle.The entire program functions off of the idea of Site Defintions working from a centralized folder...
    http://tv.adobe.com/watch/learn-dreamweaver-cs5/gs01-defining-a-new-site/
    Once your site definition is created, and all of your files are within the folder it creates, you can use DW to re-link your images. Once everything is re-linked with correct paths, you can upload all of the files to your server. Your .html pages do not "contain" their images, each image also needs to be uploaded to the server itself.
    Templates:
    In DW, "Templates" are a very specific thing. They have a .dwt file extension and are used to create Child Pages within a Defined Site and have Editable Regions set by you. Everything outside those Editable Regions is identical from page to page, leaving the Editable Region as your area to place content that changes from page to page. To me, it sounds like you are just using a pre-made layout vs an actual DW Template .dwt file. I just wanted to make sure that was the case, because some weird things can happen if you don't use a .dwt correctly.

  • Video app becomes corrupted after streaming iTunes purchases

    I wasn't sure what to use for a title here, but chose this because it captures much of what I am seeing.
    Hardware:
    3rd gen iPad, 32GB, iOS 7.0.4
    What I am doing:
    I purchase TV shows and movies from the iTunes store, but as we watch them while on the home Wifi network, there is no need to download the content to a device before viewing. Once a TV show or movie is purchased, it can be viewed in the Videos app as streaming content, much the same way that it does on Apple TV (which doesn't permanently store anything).
    Key observation: I usually make these purchases through the Videos app itself, rather than going explicitly to the iTunes Store app. I am not sure this makes a difference, but it may.
    What happens:
    It all works well for several weeks or months. Then 3 bad things happen:
    1) During this time I observe that the available space on the iPad steadily decreases (viewed through Settings -> General -> Usage). It starts with a value of approximately 12GB free space, and then declines, despite the fact that I am not storing any media files locally. After approximately 2 months, I now have 5GB free, and cannot account for the "missing" 7GB, not even close.
    While it is to be expected that any streaming device must temporarily store content, that content is usually cleared after viewing or after some predetermined time interval, etc. I do not expect this content to simply accumulate endlessly.
    2) Eventually, videos will fail to work properly. I will attempt to watch a purchased item, and it will run painfully slow, and may be missing audio. I check Usage, and my free space continues to decline. Subsequent attempts to view TV show and movies are now unreliable.
    Big clue: shows that do not work properly cannot be deleted or downloaded locally.
    3) The entire iPad becomes notably slower and less responsive running all of my usual apps (Pages, Numbers, Facebook, etc.)
    What I tried that was illuminating:
    I noted that under Settings -> General -> Usage, it shows the Video app as containing "No data". So, I tried downloading a different purchased video in order to guarantee that there is some data. While this video plays within the Video app, I observe that Usage still shows the Video app as having "No data", which is verifiably untrue.
    Conclusion: the database used by the Videos app is failing to purge old streamed content, becoming corrupted, and now failing to report data storage to iOS.
    What works:
    Sadly, the only cure for this problem is a complete erase/restore of the iPad from iCloud backup. When I do this, all of my "missing" storage returns, and videos work normally. The iPad performance returns to its usual snappy self. But the cycle repeats, and I must eventually go through the 3+ hour restore process again.
    This solution is 100% consistent with a corrupt database, and hence I suspect that the Video app is the culprit, consuming space until other systems are affected.
    Has anyone else seen this?

    I'm experiencing this exact issue on two devices:
    iPhone 4S 32GB
    iPad Air 64 GB
    Both while running iOS 7.03 and 7.04 (recently updated both devices to 7.04 hoping it would help. It didn't)
    My iPhone had become nearly unusable until I found your post. It had apparently accumulated >12 GB of "temporary streamed content", as after I did a backup/wipe/restore, I had recovered to around 12 GB free space.
    It's unfortunate that the fix requires a complete reset/restore cycle, as it's very time-consuming, but thanks for providing that fix! It saved my iPhone 4S. Now I can comfortable wait until the 6 comes out to get a new iPhone.
    Really, though, this seems like a critical bug for iOS devices. I'll certainly not stream any iTunes content until/unless this is fixed. I found that if I turn off "Show all Videos" in the Video App settings, it doesn't show the iTunes cloud content for streaming from within the App. This forces me into iTunes to do a full download if I want to watch something. Kind of a pain, but it beats a device that's maxed out on storage and basically bricked.

  • Why do images become blurry after resizing in lightroom?

    Please help.
    I do not know why the images are becoming blurry after resizing them in lightroom and exporting them?
    Any advice?
    Thanks.

    What pixel dimensions are you resizing them down to and what quality setting and sharpening settings are you specifying in the Export panel?

  • IPhoto preferences - delete images from camera after upload???

    Is there a preference setting in iPhoto 6 to delete images from my camera's card after upload? Can't find it...

    Hi, buzzworms. Yes, it's there — but don't use it.
    Too many users of iPhoto have selected that option and then had an import go awry for some reason, only to discover afterward that even though the pictures weren't successfully imported, the card was erased and the pictures were gone.
    Much better to leave that option deselected, so the contents of your card aren't changed by your Mac whether or not they've been imported successfully. It's free insurance against the loss of your pictures. Erasing the card in your camera only takes a moment after you've confirmed that the pictures are safely stored in iPhoto's library.
    Message was edited by: eww

  • Time Machine Sparce Image becomes corrupt

    About once per week, the Sparce Image from my Time Machine backup of my iMac G5 becomes corrupt, and I have to delete it and start over to make Time Machine work. The Sparce Image created by my MacBook has not been affected. I think this is happening on my iMac G5 because several processes are running simultaneously. I would be interested in any advice or workarounds available to deal with this problem.
    Thanks -
    Dudley Warner

    You need to supply more information. If you are getting sparsebundle files, that means the backups are made to a network drive/server. Are you using one drive as the backup destination for both macs, and are both macs accessing the drive using ethernet or wirelessly?

  • Images become pixelated after Rendering

    Hi,
    I have a rather old version of Premiere Pro. (V 7.0) and I'm trying to put stills in my video but when I do and then render the video, all my images become pixelated. The images started out crisp and clear before rendering. I have been resizing/ repositioning the images but I tried without resizing and the images still become blurred and pixelated. I've tried exporting to see if it was just the viewer but video comes out pixelated as well. I've tried several things:
    Images are PNGs. I've tried .Tiff and  .Jpg  and neither made a difference.
    Images that are not resized pixelate as well.
    Quality is set to Highest.
    Zoom Level is 100%
    Tried setting Pixel Aspect Ratio to Square pixels.
    Below is an example of my problem. The images have yet to be resized and are still becoming pixelated.

    I'm having same issue.   Premiere Pro has THE WORST customer support.  I waited on hold for over 1 hour and 18 minutes, and when I got connected 10 minutes 'til 9, they said I had called in too late, and that is why my call was transferred to a sales person.    I'm looking to ditch my PP CC and find something with better customer support...let me know if you find something as well.

  • Uploaded Image gets corrupted after upgrading jre from 1.3.0_02 to 1.3.1_15

    We were running jre 1.3.0_02. The image upload functionality was working fine with this version. But after upgrading to jre1.3.1_15, the uploaded image shows correct file size but it gets corrupted.
    Please help.

    I found that the problem with encoding. If wrote a sample application which read gif file and print the value.
    Here is sample application:
    import java.io.FileInputStream;
    public class TestCopy {
    public static void main(String[] args) {
    String filename = "/home/appliance/data/frontpanel/logo.gif";
    StringBuffer sb = new StringBuffer();
    try{
    // System.setProperty("file.encoding", "ISO-8859-1");
    FileInputStream f = new FileInputStream(filename);
    System.out.println("<SaveOnAllServlet> autoSaveArgs :"+filename);
    int c;
    while((c = f.read()) != -1){
    System.out.println(c+"->"+(char)c); // This is problematic for me
    sb.append((char)c);
    System.out.println("Copy complete...");
    System.out.println(System.getProperty("file.encoding"));
    f.close();
    // System.out.println(sb);
    catch (Exception e) {
    e.printStackTrace();
    when I run this program on jre1.3.0_02 get value of file.encoding as 8859_1 and on running same application on jre1.3.1_15 I get encoding value ANSI_X3.4-196
    Please let me know how can I set desired encoding... I wants to set default encoding of jre1.3.0_02 to default encoding of jre1.3.1_15
    thanks in anticipation.

  • My RAW images get corrupted after downloaded  HELP

    Hey anyone, and if you do not know why this is happening, please pass it on.
    attached in an image I was looking at in LR, this same problem has occurred in Bridge. while looking at images all of a sudden part or all of the image goes into psychedelic colors as seem in the lower rt side. anything from a line thru the middle of the picture to the total image with all sorts of mosaics of color this has been happening for may years. a forum told me I had a corrupt card reader, another said something to do with the computer. so to put this in perspective.  i have used many different card readers, two different computers.  two different operating windows systems. original was XP and new one is windows 7.  this image was not copied from one computer to another so it is a new image downloaded into the newer computer.  Once in a while when I open the image it reverts back to the image without the wiierd  colors in it. If I bring it into bridge the same things happen in corruptions .  I have lost images from many years ago in bryce canyon to this issue . 
    Once the image is saved in a different formate , JPG< PSD, Tiff. etc it never corupts. ONLY the RAW files corrupt and DNG.   for a while I started shooting in both JPG and RAW just to have a back up.  two different cameras, many different card readers. many cards. still happening.  any help would be appreciated , have not found anything on the adobe forums.  if you have no idea could you pass this one to friends , need a solution,  for a while I backed up all the images when downloading directly to a hard drive without going thru LR or photoshop just to have a replacement. that just gets crazy to do after time.
    As you can see on the lower left there is crazy stuff going on. sometimes it is the total image corrupted.
    PS , if the two forums , fred miranda, and lumosity landscapes , do not have an answer, please help me find one.  it is horrible to loose images from years ago much less last wk to this issue. 
    BTW this does not happen on my old Vista laptop,  thanks for helping in advance.  steve

    thanks,
    last option not viable, LR or PS  really can not be replaced, I could live
    without LR , have had it since version 1 release think 2007ish.   It was
    mainly a way to keep track of ones images via search words .    good idea,
    since this was difficult pre-digital with tons of negative.
    I use it for down and dirty qucik editing to post something on G+  or FB
    but not for final editing.   RAW thru PS is where I do that and then into
    PS .
    If my wife would not leave me I would switch to Mac. not happening as a
    hobby at this time.  my guess is a freaking RAM issue or operatting system
    that maybe when I transfered my images from the old computer to the new I
    carried some type of bug with the transfer to the new computer.  but that
    is reallllly reaching.
    Adobe has not been helpful in the least, but that is not new.
    you are only one of two people to give some advice, very appreciated  and I
    am about 98% that your suggestions are correct.
    steve

  • Web galleries--thumbs and large images not showing after uploading to server

    I have created 2 web galleries--one html and one Flash. I saved them to my local drive and they work perfectly. Then I uploaded to our server (I checked to see that all folders/files made it, and they did) and then when I access the index.html file, neither the thumbnails or the full-size images show. In case it helps to see, here are the two URLs
    FLASH
    http://www.photosafaris.com/SlideshowLogs/PalouseSlideshowFlash/index.html
    HTML
    http://www.photosafaris.com/SlideshowLogs/PalouseSlideshowHTML/index.html
    Anyone have suggestions/ideas?
    Thanks,
    RV

    Sean--that did the trick for HTML galleries...thanks!  I am working on a IIS server, so I presume your fix and the server are related to the problem I was exeperiencing.
    In a Feb 4, 09 reply you posted to someone else, you referenced a link (see below) about making similar file mods to make Flash work, but I couldn't access the link.  Any chance you could repost these mods so I can use Flash galleries on a IIS server as well.
    Did you try my suggestions in the Flash thread?
    http://www.adobeforums.com/webx/.59b76546/3
    Much appreicated,
    Rick

  • NEF images become dull after import

    After importing images from a Nikon Df using the NEF raw format, and upon viewing them for the first time in the LR library, they briefly appear as crisp as they were on the camera, but an instant later, they are resized by a small amount and appear a notch dull, i.e. of less contrast and saturation, than the original. I can reconstruct the original impression with some effort, but of course that's not the purpose of using LR. It appears as if LR automatically applies some import settings that are unknown to me. Is someone here wiser?

    What you’re seeing is normal.  The brief initial view is the camera-embedded JPG preview that is done with Nikon rendering by the camera.  After that the default Adobe rendering is applied and it can look dull by comparison, depending on the lighting.
    Adobe has no way of interpreting the camera settings because they are proprietary to Nikon.  The closest you can come, easily, is to use one of the Camera-XXXX profiles (i.e. Camera Standard, Camera Portrait) in the Camera Calibration section which Adobe makes to somewhat simulate the various picture modes on the camera, instead of using the default Adobe Standard
    Some of the camera settings in your camera, like Auto-D-Lighting, correct for bad exposure.  LR does have an Auto tone button that might do something conceptually similar but will unlily yield the same result.  f you are going to be developing Nikon raw files in Adobe products, it’s best to turn those auto-fix settings like ADL off so avoid confusion.
    You can set new customized defaults by pressing the Alt key in LR-Develop and clicking Set Default… and it’ll save whatever the current photo’s current settings are as the new defaults.
    You can also apply a Develop Preset to each import batch on an ad hoc basis to make all photos of one export have different settings than the default.

  • Firefox has become corrupted after update

    Well...the title or were the question should be says it all, it happened not to long ago like 5 min. ago after a routine up date firefox didn't open. I figured well this has happened before so I went through the usual and restarted my computer, that didn't work, I uninstalled and tried to reinstall that didn't work either afterwards every time I tried to install aftter installing, it said "windows is searching for firefox.exe, to locate this file your self click browse" when I clicked where the firefox icon should be.
    I did browse and I found firefox's folder, thing is it had no executable file so I uninstalled again, every time I did so it said "an error occured while trying to uninstall mozilla firefox 13.0.1 (d86 en-US) it may have already been uninstalled" which is strange it did not tell me that the first time I tried and after many re-installations. I went through my files and found were mozillas folder was at apparently it did not install or uninstall so I proceeded to delete everything not before I backed up my profile (at least I think I did).
    When I got down to the last item in the folder which was another folder it did not want to uninstall the name of that folder was "uninstall" (yes I know inception who what of guessed) turns out the file had corrupted every time I tried to delet it said "An unexpected error is keeping you from deleting the folder. If you continue to recieve this error you can use error code

    You can do a disk check with the chkdsk.exe program.
    If you run the chkdsk.exe program from a cmd.exe Command window then you can read the response from the chkdsk.exe program.
    Open a cmd.exe window:
    Start &gt; Run: cmd.exe &lt;press Enter&gt;
    At the command prompt (>) type or Copy&Paste: chkdsk.exe /f /r &lt;press Enter&gt; (put a space before /f and /r)
    If you get something like: Would you like to schedule this volume to be checked the next time the system restarts? y/n then answer the question with "Y" and close all programs and reboot the computer.
    See also:
    *http://support.microsoft.com/kb/315265/
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 13.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will also lose your personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

Maybe you are looking for