How to name a layer with the file name - action or script???

Hi all,
Can anyone tell me if it is possible to automatically name a photoshop layer to be the name of the file itself?
I have 600 files to do and need to automate the process.
Thanks in advance for any advice.
Marvo.

Open ExtendScript Toolkit this can be found here:-
PC: C:\Program Files\Adobe\Adobe Utilities
MAC: <hard drive>/Applications/Utilities/Adobe Utilities
Copy and paste the code into a new window and then save the code to:-
PC: C:\Program Files\Adobe\Adobe Photoshop CS#\Presets\Scripts
Mac:- [hard drive]/Applications/Adobe Photoshop CS#/Presets/Scripts/
If photoshop was open, close and re-start it so that Photoshop can pick up the new script.
Now you can create an action to run the script and do your save so that this action can be batched.
To add the script to your action:
File - Scripts - select the script (this will add the new layer)

Similar Messages

  • How do i print a photo with the file name

    This seem stupid simple but I cannot find an answer anywhere. I want to print out hardcopies of phots with the file name printed with the photo. In Windows there is a program called Picture Manager (which has been eliminated in Office 2013) where you can open a folder of images, rename them individually or in batches, resize, edit, etc, all in one lovely program. You can print out individual or contact sheets with specific information for each image. Easy, one program, easy results.
    Is there a comparable program for the Mac? I have searched the web and can only find suggestions that use multiple progams, downloads, plugins, and convoluted work arounds to do this. I have tried printing contact sheets in iPhoto but it crashed each time. Our IT guy suggested moving the images into an album and printing from there but it still crashes. And even if it worked I want large image per page but iPhoto leaves a large amount of white space.
    The quickest way I have figured out is this:
    Select the images in Finder, make a separate folder and copy the images there. (3steps)
    Locate the folder in Finder and drag it to the Bridge icon (4steps)
    Select the images in Bridge, adjust the output settings and Save as a pdf (6steps)
    Locate the pdf in Finder, open in Acrobat, select the images (again!) and print (9steps)

    GraphicConverter, from here:
    http://www.lemkesoft.com/

  • I just order 8 calendars from iPhoto and they came to me fine. Now I need to order two more but when I go thru the process I get a message  saying:unable to assemble calendar. There is a probleme with the photo with the file name"(Null)"   more........ .

    Would someone be able to explain to me the following issue with Iphoto?
    I ordered 8 same calendars for my soccer team and received them fine. Although a couple of pictures on it are a little off (out of focus). I need to order two more of the same calendars but when I go thru the process ireceive an error message saying:
    "Unable to to assemble  calendar" There is a problem with the photo with the file name "(Null)" The full resolution version of this photo either cannot be located or is corrupt. Please replace this photo or delete it from your calendar.
    How can  I fine this "corrupt" photo? How did it go thru with the first batch of calendars but won't go thru now?
    Thank you for your help.   

    Apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start
    with Option #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

  • How can I merge folder with the same name so that the content does not replace the other

    How can I merge folder with the same name so that the content does not replace the other?

    >
    That's only a good idea if the semantics of sayHello
    as defined in MyInterface suggest that a
    RemoteException could occur. If not, then you're
    designing the interface to suit the way the
    implementing classes will be written, which smells.
    :-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
    Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.

  • When saving files under options the file name is duplicated how to remove extra folder with the same name

    Under Firefox Options I clicked Saving Files under Downloads but the file name appears twice and an extra folder with the same name is created within the folder i.e.:
    G:\Akbar's Songs\HAMARA FORUMS DOWNLOADS\HAMARA FORUMS DOWNLOADS
    As you can see the folder is repeated, how can I correct this?
    Also the music files I download from a site downloads as WinRar file and I need to open it. Is there an option where the files open automatically in the folder I have selected?
    Many thanks for your help.

    The "beta" version is for testing and may be more prone to problems, so I suggest trying the regular version (9.20) even though it hasn't been updated since 2010.

  • How to not append '.PART' to the file name of the currently downloading file, and just download the file with its normal filename

    In Windows, when Firefox (I'm currently using 7.0) downloads a file, it appends ''.PART'' to the file name of the currently downloading file and just renames it to its original file name after it finishes downloading.
    I sometimes like to watch a currently downloading video file, so it will be better if Firefox just downloads the file to its actual filename (like what Opera does), so I can easily double click the incompletely downloaded file and watch it with the video player assigned to that file extension, rather than the awkward ''Right click -> Open With -> Choose Default Program'' route with .part files.
    Does anyone know how to set Firefox to do this?

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox and prevents Firefox from renaming the .part file.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See "Disable virus scanning in Firefox preferences - Windows"
    * http://kb.mozillazine.org/Unable_to_save_or_download_files

  • How do you force instances with the same name on the same layer to update?

    Maybe someone can tell me why flash doesn’t redraw
    components’ x,y positions if they have the same instance name
    and are on adjacent frames? (movieclips work fine, just not
    components) If I have a button on frame 1 and a button on frame 2
    both with the same instance name but different locations on the
    stage, frame 2’s button doesn’t show up in the position
    I placed it, it stays at the position of frame 1 but still has the
    properties of frame 2’s button. The label changes and
    everything. If I stick a button on a frame in between and give it a
    different instance name there is no problem. I thought it might be
    the style manager bug
    http://www.gskinner.com/blog/archives/2007/12/cs3_component_b.html
    but it didn’t seem to affect. This happens for textareas too
    and probably all components although I haven’t tried them.
    I’ve tried using drawNow() and validateNow() with no luck
    either
    http://www.adobe.com/devnet/flash/articles/creating_as3_components_pt3_05.html
    Thank you!
    // put this on frame 1 along with a button on the stage with
    instance name: b
    function doit(event) {
    if (currentFrame == 1)
    gotoAndStop(2);
    else
    gotoAndStop(1);
    b.addEventListener(MouseEvent.CLICK, doit);
    stop();
    // put another button on frame 2 along with this code and
    also make it’s instance name: b but move it so it’s not
    in the same x,y coordinates as the button on frame 1
    stop();
    Something possibly related. I have a movieclip on a layer,
    one instance with name “a” on frame 1 and one instance
    with name “a” on frame 2 and it has event listeners
    inside it that update something on the movieclip. Unless I put the
    movieclips on separate layers the event listeners won’t reset
    each frame. (example: a button with a tooltip onmouseover that you
    want to change the text of from frame 1 to frame 2) You’d
    think if they were on separate keyframes at least but no, they need
    to be on separate layers too.
    I want the movieclip to update each frame. Any ideas?

    instances (whether components or not) with the same name may
    or may not be the same instance. it depends upon how they were
    created.
    for example, if you create an instance on frame 1 of your
    main timeline, give it an instance name and then create a keyframe
    on frame 2, the two instances will be the same.
    but if you create an instance on frame 1 of your main
    timeline, give it an instance name and then create a blank keyframe
    on frame2 and create another, what you think is a duplicate,
    instance and give it the same name, it will be a different
    instance.

  • How to create reports servers with the same name in two nodes in Reports

    Greetings
    We are migrating Oracle Application Server 10g (9.0.4) to a better hardware infrastructure with high availability. We want to provide 2 new Oracle Application Server 10g (9.0.4) in High availability and we want to avoid modify the existing forms and reports code, but the code is looking for a specific reports server name when calling reports, but I couldn't create the same reports server name in the both oas machines, I could create the reports server in only one node. I want to create a reports server with the same name in both nodes but it is not possible. I know that there is a procedure to do that in 10.1,2 (Note 437228.1, How to Create Two Reports Servers With the Same Name in the Same Subnet) but I couldn't find the equivalent procedure in 9.0.4.
    Anybody kwows how to create a reports server with the same name in two nodes using 10g (9.0.4)
    Thanks
    Ramiro Ortiz.

    Hello.
    I applied the patch 4092150 on my oas 9.0.4.2 and I modified my rwnetwork.conf file changing the port to 14022 by following the note "How to Create Two Reports Servers With the Same Name in the Same Subnet? [ID 437228.1]" but I am facing the same error rep-56040 "server already exists in the network".
    When I run osfind command I get the following information (My reports server is senarep and I want to create it on SNMMBOGOAS10):
    osfind: Found 2 agents at port 14000
    HOST: SNMVBOGOAS10.sena.red
    HOST: SNMVBOGOAS09.sena.red
    osfind: There are no OADs running on in your domain.
    osfind: There are no Object Implementations registered with OADs.
    osfind: Following are the list of Implementations started manually.
    HOST: SNMVBOGOAS10.sena.red
    REPOSITORY ID: IDL:oracle/reports/server/EngineComm:1.0
    OBJECT NAME: senarep2
    REPOSITORY ID: IDL:oracle/reports/server/ServerClass:1.0
    OBJECT NAME: senarep2
    HOST: SNMVBOGOAS09.sena.red
    REPOSITORY ID: IDL:oracle/reports/server/EngineComm:1.0
    OBJECT NAME: senarep
    REPOSITORY ID: IDL:oracle/reports/server/ServerClass:1.0
    OBJECT NAME: senarep
    Any Ideas?

  • How do I call methods with the same name from different classes

    I have a user class which needs to make calls to methods with the same name but to ojects of a different type.
    My User class will create an object of type MyDAO or of type RemoteDAO.
    The RemoteDAO class is simply a wrapper class around a MyDAO object type to allow a MyDAO object to be accessed remotely. Note the interface MyInterface which MyDAO must implement cannot throw RemoteExceptions.
    Problem is I have ended up with 2 identical User classes which only differ in the type of object they make calls to, method names and functionality are identical.
    Is there any way I can get around this problem?
    Thanks ... J
    My classes are defined as followes
    interface MyInterface{
         //Does not and CANNOT declare to throw any exceptions
        public String sayHello();
    class MyDAO implements MyInterface{
       public String sayHello(){
              return ("Hello from DAO");
    interface RemoteDAO extends java.rmi.Remote{
         public String sayHello() throws java.rmi.RemoteException;
    class RemoteDAOImpl extends UnicastRemoteObject implements RemoteDAO{
         MyDAO dao = new MyDAO();
        public String sayHello() throws java.rmi.RemoteException{
              return dao.sayHello();
    class User{
       //MyDAO dao = new MyDAO();
       //OR
       RemoteDAO dao = new RemoteDAO();
       public void callDAO(){
              try{
              System.out.println( dao.sayHello() );
              catch( Exception e ){
    }

    >
    That's only a good idea if the semantics of sayHello
    as defined in MyInterface suggest that a
    RemoteException could occur. If not, then you're
    designing the interface to suit the way the
    implementing classes will be written, which smells.
    :-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
    Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.

  • Using sqlldr to load XML files and the file name ?  or access the file name

    I can use sqlldr to load the XML files when I declare the target table of XMLTYPE, but I need to load the filename and a sequence also with the XML in a table so we can mark wether the file passed validation or not.
    something like ....
    Create table test1
    lobfn varchar(200),
    load_number number,
    XML_COL XMLTYPE
    --------------- here is my sqlldr command
    sqlldr xml_user/xml_user load_test1.ctl
    LOAD DATA
    INFILE *
    INTO TABLE test1
    append
    xmltype(XML_COL)
    lobfn FILLER char TERMINATED by ',',
    XML_COL LOBFILE(lobfn) TERMINATED BY EOF
    BEGINDATA
    filename1.xml
    filename2.xml
    filename64.xml
    sqlldr comes back and says "commit point reached - logical record count 64
    but when I select count(*) from test1; it returns 0 rows.
    and when I
    SELECT X.* FROM tst1 P2,
    XMLTable ( '//XMLRoot//APPLICATION'
    PASSING P2.XML_COL
    COLUMNS
    "LASTNAME" CHAR(31) PATH 'LASTNAME',
    "FIRSTNAME" CHAR(31) PATH 'FIRSTNAME'
    ) AS X;
    It tells me invalid identifier ,
    Do I need to use a function to get the XML_COL as a object_value ???
    But when I create the table like
    create table test1 of XMLTYPE;
    and use sqlldr it works, but I dont have the file name, or dont know how to access it ??
    and I can use
    SELECT X.* FROM tst1 P2,
    XMLTable ( '//XMLRoot//APPLICATION'
    PASSING P2.object_value
    COLUMNS
    "LASTNAME" CHAR(31) PATH 'LASTNAME',
    "FIRSTNAME" CHAR(31) PATH 'FIRSTNAME'
    ) AS X;

    BTW
    Here's a trivial example of what you appear to be trying to do..
    C:\xdb\otn\sqlLoader>sqlplus scott/tiger @createTable
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Aug 2 22:08:10 2006
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> DROP TABLE TEST_TABLE
      2  /
    Table dropped.
    SQL> CREATE TABLE TEST_TABLE
      2  (
      3    filename    VARCHAR2(32),
      4    file_content xmltype
      5  )
      6  /
    Table created.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    C:\xdb\otn\sqlLoader>type sqlldr.ctl
    LOAD DATA
    INFILE 'filelist.txt'
       INTO TABLE TEST_TABLE
       FIELDS TERMINATED BY ','
        FILENAME       CHAR(32),
        FILE_CONTENT   LOBFILE(FILENAME) TERMINATED BY EOF
    C:\xdb\otn\sqlLoader>type filelist.txt
    testcase1.xml
    testcase2.xml
    C:\xdb\otn\sqlLoader>type testcase1.xml
    <foo/>
    C:\xdb\otn\sqlLoader>type testcase1.xml
    <foo/>
    C:\xdb\otn\sqlLoader>sqlldr userid=SCOTT/TIGER control=sqlldr.ctl log=sqlldr.log -direct
    SQL*Loader: Release 10.2.0.2.0 - Production on Wed Aug 2 22:08:11 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Load completed - logical record count 2.
    C:\xdb\otn\sqlLoader>sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Aug 2 22:08:18 2006
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from TEST_TABLE
      2  /
    FILENAME
    FILE_CONTENT
    testcase1.xml
    <foo/>
    testcase2.xml
    <baa/>
    SQL>
    If you are interested in the 11g beta program please contact me directory at
    markDOTdrakeAToracleDOTcom

  • Is there a way to have compressor create files without have the settings name as part of the file name?

    It's very annoying to have to delete half of the file name each time.  Is there a way to just have it pop out as whatever you want to title it and the file extension?

    In Compressor 3 - Create a custom destination, where you want to save the compressed files.
    Once it is created, click on the custom destination and look in the Inspector - you will see the Output Filename Template for the destination. Delete the "- Setting Name" so that it just says "Source Media Name".
    Now apply this destination to your clips to be compressed.
    In Compressor 4, I believe the default is just the file name, but you can modify it in the same way by using the inspector for your custom destination when you create a custom destination.
    MtD

  • In IE, while saving a file it is taking the full path with the file name

    Hi,I am using Tomcat5.5. In one page of my website, there is code responsible for saving an image from the server to the client machine. whenever i am doing this Mozila the file is getting saved with desired name. But in IE it takes full path of the file in the server directory along with its name while being saved in the client machine.Below is the code responsible for this. Plz Help.
    DiskFileUpload fu = new DiskFileUpload();
            List fileItems = fu.parseRequest(request);
            Iterator itr = fileItems.iterator();
            while(itr.hasNext())
              FileItem fi = (FileItem)itr.next();
              //Check if not form field so as to only handle the file inputs
              //else condition handles the submit button input
              if(!fi.isFormField())
                if(fi.getFieldName().equals("FileImage"))
                    if(fi.getSize() < 300000)
                      if(fi.getSize()!=0)
                            java.util.Random rd = new java.util.Random();
                            int random = rd.nextInt(100000);
                            String img_code = random + "";
                                  if(fi.getContentType().equals("image/jpeg") || fi.getContentType().equals("image/pjpeg") || fi.getContentType().equals("image/gif") || fi.getContentType().equals("image/png") || fi.getContentType().equals("image/x-png") || fi.getContentType().equals("image/bmp") || fi.getContentType().equals("image/wmp") || fi.getContentType().equals("application/octet-stream") || fi.getContentType().equals("audio/wav") || fi.getContentType().equals("audio/x-wav") || fi.getContentType().equals("audio/AMR") || fi.getContentType().equals("audio/amr") || fi.getContentType().equals("audio/mpeg") || fi.getContentType().equals("audio/mp4a-latm") || fi.getContentType().equals("audio/x-realaudio") || fi.getContentType().equals("audio/x-pn-realaudio") || fi.getContentType().equals("audio/x-pn-realaudio-plugin") || fi.getContentType().equals("audio/midi") || fi.getContentType().equals("audio/mid") || fi.getContentType().equals("audio/x-midi") || fi.getContentType().equals("audio/x-mid") || fi.getContentType().equals("audio/x-tone-seq") || fi.getContentType().equals("audio/imelody")
                                       || fi.getContentType().equals("video/mp4v-es") || fi.getContentType().equals("video/mp4") || fi.getContentType().equals("video/3gp") || fi.getContentType().equals("video/3gpp") || fi.getContentType().equals("video/mpeg") || fi.getContentType().equals("video-h263-2000"))
                                   System.out.println("Content from FileItem :  "+fi.getContentType());
                              File tempfile = new File(fi.getName());
                                    String imageFile=tempfile.getName();
                                    out.println("imageFile:" +imageFile);     
                                   imageFile= imageFile.replace(':','_');
                                   imageFile=imageFile.replace('\\','_');
                                   imageFile= imageFile.replace('/','_');
                                   imageFile= imageFile.replace(' ','_');
                                   System.out.println(imageFile);
                                  out.println("imageFile:"+imageFile);     
                                   int extIndex=0;
                                   String ext="";
                                  extIndex = imageFile.lastIndexOf(".");
                                  ext = imageFile.substring(extIndex+1);
                                                   if( ext.toLowerCase().equals("jpg") || ext.toLowerCase().equals("jpeg") || ext.toLowerCase().equals("jpe") || ext.toLowerCase().equals("bmp") || ext.toLowerCase().equals("gif")|| ext.toLowerCase().equals("png") || ext.toLowerCase().equals("wbmp")
                                                      || ext.toLowerCase().equals("amr") || ext.toLowerCase().equals("mp3") || ext.toLowerCase().equals("mp2") || ext.toLowerCase().equals("mpga") || ext.toLowerCase().equals("wav") || ext.toLowerCase().equals("midi") || ext.toLowerCase().equals("mid") || ext.toLowerCase().equals("kar") || ext.toLowerCase().equals("ra") || ext.toLowerCase().equals("ram") || ext.toLowerCase().equals("rm") || ext.toLowerCase().equals("au")
                                                      ||  ext.toLowerCase().equals("3gpp") || ext.toLowerCase().equals("3gp") || ext.toLowerCase().equals("mpeg") || ext.toLowerCase().equals("mpe") || ext.toLowerCase().equals("mpg") || ext.toLowerCase().equals("mp4") || ext.toLowerCase().equals("movie") || ext.toLowerCase().equals("avi") || ext.toLowerCase().equals("qt") || ext.toLowerCase().equals("mov") || ext.toLowerCase().equals("viv") || ext.toLowerCase().equals("vivo"))
                              File fNew = new File(application.getRealPath("/userImages/"),img_code+"_"+imageFile);
    //                         ImagePath =  imagepath+img_code+"_"+tempfile.getName();
                             ImagePath =  imagepath+img_code+"_"+imageFile;
                                   System.out.println("Image PAth : "+ImagePath);
    //                          ImagePath =  fNew.getAbsolutePath();
                              //out.println(fNew.toString());
                              ImageName = fNew.getName();
                                    System.out.println("Image Name : "+ImageName);
                                    out.println("ImageName:" +ImageName);     
                              fi.write(fNew);
                                    else
                                           System.out.println("Invalid File Type : "+ext);
                                           Error = "1: Invalid File Type/Extension : "+ext;
                            else
                                Error = "2: File uploaded is not valid.";
                       System.out.println("Content from FileItem :  "+fi.getContentType());
                                System.out.println("invalid Content Type");
                         else
                                Error = "";
                    else
                       Error = "3: File uploaded is not valid. Make sure that the image size does not exceed 300KB";
                       System.out.println("File uploaded is not valid.");
              else
                   session.setAttribute(fi.getFieldName(),fi.getString());
    session.setAttribute("ImagePath",ImagePath);
    session.setAttribute("ImageName",ImageName);
    session.setAttribute("barcodepath",barcodepath);
    //Added by Mutharasu on 30/08/2005
    session.setAttribute("tagpath",tagpath);
    Title = (String) session.getAttribute("txtTitle");
    if(Title.length()==0)
      Error = " Please Enter KoolTag Title : ";
    Key = (String) session.getAttribute("txtKey");
    URL = (String) session.getAttribute("txtURL");
    System.out.println("Key: "+ Key +", URL:"+URL);
    System.out.println("trace 5");
    if (ImagePath.trim().length()==0 && ImageName.trim().length()==0) {
       if (Key==null && URL==null)
          throw new Exception("4: "+Error);
    }

    Hi Vigneshwara,
    Please reopen a new thread in
    ASP.NET Getting Started forum because I can't move it there.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to print an email with the full name of the attachment ?

    In Mail, when using "View as an Icon", the name of the attachment - if too long - does not appear in full. Any tip on how to have the full name appears (for archiving purpose) ? Thank you

    Srinivas, Thanks for your quick reply.
    This is smartform, and sending the output as pdf, except the the first page on which I have the text to be printed on the email body. In this email body text I have to display an email.
    when user clicks on the email should open an outlook with the email id in the TO. Hope this helps.
    Thank you,
    Surya

  • How to do coding to change the file name while loading

    Hi All,
    Recently we have upgraded to BI 7.0. I am currently loading flat file from Application server. Flat file name will change after a period of month ex. from 17 dec to 16 jan one file name and 17 jan to 16 feb another name.
    I have a table /bic/pzscenario where i have start date and end date and another field(zscenario) which stores name of the file.
    Directory created is /interface/gsf/ so file name should be /interface/gsf/"value of zscenario based on system date which falls between startdate and end date".csv.
    can anyone tell me how to do coding for this in infopackage?
    Thanks this is very urgent. I tried using select statement
    select single /bic/zscenario from /bic/pzscenario into tab_zsce
    where zstartdate LE sy-datum or
              zenddate LT sy-datum.
    if sy-subrc eq 0.
    concatenate "/interface/" "gsf/" "tab_zsce-/bic/zscenario" into p_filename.
    endif.
    this coding throws me error saying unexpected endif...
    pls correct my coding. If the coding is wrong pls let me know how to code.
    Thanks & Regards,
    Bhuvana.

    Hi Bhuvana,
    Your code returns more than one "zscenario"  value,  this might be the reason for error.
    It shud be like
    sy-datum GE zstartdate and sy-datum LE zenddate
    Anu.

Maybe you are looking for