0 bytes resource

Hi there,
I'm trying to use FileUpload component with no sucess. No matter what I do I always get a 0-byte long resource (all other resource attributes are ok, such as resource name, mime type, and so forth). The resource.read(false) method always return an empty InputStream. Should I do something with the resource before it is populated with real bytes???
Best,
Ricardo

Hi,
I imported the SCA files and deployed the DC and it works fine for me.
            IPrivateUploadFileView.IContextElement element = wdContext.currentContextElement();
          IWDResource resource = element.getFile();
          byte fileData[] = null;
          // if a file in the FileUpload field exists
          if (resource != null) {
               try {
                    int fileLength = 0;
                    InputStream fileIs = resource.read(false);
                    ByteArrayOutputStream bOut = new ByteArrayOutputStream();
                    int length;
                    byte[] part = new byte[10 * 1024];
                    while ((length = fileIs.read(part)) != -1) {
                         bOut.write(part, 0, length);
                    fileIs.close();
                    fileData = bOut.toByteArray();
                    fileLength = fileData.length;
                    bOut.close();
                    wdComponentAPI.getMessageManager().reportSuccess("File Length"+fileLength);
                    if (fileData == null || fileLength == 0) {
                         throw new RuntimeException("File data is null or zero-byte");
               } catch (Exception e) {
                    wdComponentAPI.getMessageManager().reportException(e);
          } else {
               wdComponentAPI.getMessageManager().reportException("File not defined");
         wdThis.wdGetUploadFileComponentController().fireUploadFileCompletedEvent();
wdComponentAPI.getMessageManager().reportSuccess("File Length"+fileLength);
Is printing the size
Note:-1.There is no issue in ur component possible reason might be try uploading different files.
          2.Try reinstalling your NWDS and import the SCA then which could fix this issue.
Thanks & Regards,
Lokesh Kamana.

Similar Messages

  • Help please to Upload a file from my PC to server's KM

    Hello:
    I can't Upload correctly a file from my local PC to a KM of the server.
    My problem is after that I've uploaded any file from my PC to KM, sometimes when I open or download it from the KM appears blank, and when I try another way to write the file (out.write()) I've uploaded a bad file that can't be downloaded or opened it. I can't get the file Data of the file for uploading, I need to set it with the fileResource (I tried with fileResource.read(false))
    I use a FileUpload in my view.
    <b>My Context:</b>
    File (node)
         |----fileResource  (com.sap.ide.webdynpro.uielementdefinitions.Resource)
         |----fileData  (binary)   
         |----fileName  (String)
    wdDoInit(){
         IPrivateUploadDownloadKMView.IFileElement fileBind = wdContext.createFileElement();
         wdContext.nodeFile().bind(fileBind);
         IWDAttributeInfo attInfo = wdContext.nodeFile().getNodeInfo().getAttribute("fileData");
         ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
    onActionSubir(){
          IPrivateUploadDownloadKMView.IFileElement fileElement = wdContext.currentFileElement();
          IWDResource resource = fileElement.getFileResource();
          fileElement.setFileName(resource.getResourceName());
          fileElement.setFileData(fileData);
          byte[] fileData=new byte[resource.read(false).available()];
          fileElement.setFileData(fileData);
          fileName = fileElement.getFileName();
         try{               
               File file = new File(fileName);
               FileOutputStream out = new FileOutputStream(file);
               out.write(fileElement.getFileData());
               out.close();
               fin = new FileInputStream(fileName);
               fin.read();
               Content content = new Content(fin,null, -1);
                IResource newResource = folder.createResource(fileElement.getFileName(),null, content);
          catch(Exception e){
                 IWDMessageManager mm = wdControllerAPI.getComponent().getMessageManager();
                 mm.reportWarning("error: "+e.getMessage());
    Can you help me?, any sugestions to solve my problem or improve my code?
    Regards
    Jonatan.

    If you have got the permission to access <b>content management</b> in portal appliction server consle,then click on content management >select the KM Repository and clik on it.Then right click on <b>folder</b>>new-->upload.After clicking the upload option one page will be open and then you can browse your local file and upload to the KM Repository.

  • Html error while downloading table entries to Excel.

    Hi,
    I am getting an error while downloading table entries from webdynpro to excel. After some entries below error script comes and  this is not comming all the times.
    Is this because of large size?Can anyone please suggest me on this?
    <u>Here is the dump:</u>
    [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>                                   
    <head>                                   
         <title>Error Report</title>                              
    <style>                                   
    td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}                                   
    A:link                                    
    A:visited                                    
    A:active                                    
    </style>                                   
    </head>                                   
    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">                                   
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">                                   
    <tr bgcolor="#FFFFFF">     
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  500   Internal Server Error</b></font></td>     
    </tr>     
    <tr bgcolor="#3F73A3">     
        <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>     
        <td height="23"><img width=1 height=1 border=0 alt=""></td>     
        <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/6.40 </b></font></td>     
    </tr>     
    <tr bgcolor="#9DCDFD">     
        <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>     
    </tr>     
    </table>     
    <br><br><br><br><br><br>     
    <p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  Application error occurs during processing the request.</b></font></p>     
    <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table><tr><td valign="top"><b> Details:</b></td><td valign="top"><PRE><pre>com.sap.engine.services.servlets_jsp.server.exceptions.WebIllegalStateException: The stream has already been committed.     
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:792)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:780)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:768)
         at com.sap.tc.webdynpro.serverimpl.core.url.WebDynproExchangeHandler.responseCachedWebResource(WebDynproExchangeHandler.java:98)
         at com.sap.tc.webdynpro.serverimpl.core.url.WebDynproExchangeHandler.doExchange(WebDynproExchangeHandler.java:189)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doExchangeProcessing(DispatcherServlet.java:164)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:119)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    </pre></PRE></font></td></tr></table></font></p>     
    </body>     
    </html>[/code]
    Thanks,
    Sanjeev

    Hallo Sanjeev,
    How do you exactly "download the table entries from Web Dynpro to Excel?"
    I wrote a new <b>Wiki Code Tutorial </b>which demonstrates how to download an Excel file from a Web Dynpro <i>Table </i>UI element <b>on-demand</b>. In this scenario the resource gets re-created on every request. The solution is based on re-initializing the context with a new  0-byte resource object within the calculated context attribute getter method.
    See <a href="https://wiki.sdn.sap.com/wiki/display/Snippets/ExportingTableDatainWebDynproJava-SAPNetWeaver04s">Exporting Table Data in Web Dynpro Java - SAP NetWeaver 04s</a>
    Regards, Bertram

  • Lenovo G500 win 8.1 Radeon problem

    Hi i bought Lenovo g500like a year ago and recently updated my system to win 8.1and then eveything starts. My games FPS drops for 30-40 to 11-12 (games like witcher 2 which should work fine on Radeon HD8750M). So i decided to install new version of AMD CCC but installation always end with problems and gaming still does not improve. Also if i try to turn off inter graphic card in manager it says that AMD drivers are not installed either they do not work properly and to reinstall them. What can i do? Please help!
    Here is CCC installation error log.
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="Report.xml.xsl"?>
    <monetreport xmlns:dt="urn:schemas-microsoft-com:datatypes">
    <general>
    <cmdline>-UI </cmdline>
    <time>01/18/15 12:26:25</time>
    <action>install</action>
    <download></download>
    </general>
    <dcm>
    <primary>
    <name>AMD Radeon HD 8500M Series</name>
    <manufacture>Advanced Micro Devices, Inc.</manufacture>
    <chiptype></chiptype>
    <chipid>0x6663</chipid>
    <vendorid>0x1002</vendorid>
    <ssid>0x3800</ssid>
    <ssvid>0x17aa</ssvid>
    <classcode>0x038000</classcode>
    <revisionid>0x00</revisionid>
    </primary>
    </dcm>
    <exist>
    <package>
    <description>Aktualizacja profilu PX</description>
    <result></result>
    <version>1.00.1</version>
    <size>1 </size>
    </package>
    <package>
    <description>Profile aplikacji OEM</description>
    <result></result>
    <version>1.00.0000</version>
    <size>1 </size>
    </package>
    <package>
    <description>Menedżer instalacji AMD Catalyst</description>
    <result></result>
    <version>8.0.916.0</version>
    <size>20 </size>
    </package>
    <package>
    <description>Sterownik ekranu AMD</description>
    <result></result>
    <version>13.150.102.0000</version>
    <size>90 </size>
    </package>
    <package>
    <description>AMD Accelerated Video Transcoding</description>
    <result></result>
    <version>13.15.100.30731</version>
    <size>3 </size>
    </package>
    <package>
    <description>AMD Catalyst Control Center</description>
    <result></result>
    <version>2013.0731.1514.25483</version>
    <size>150 </size>
    </package>
    </exist>
    <install>
    <package>
    <description>Menedżer instalacji AMD Catalyst</description>
    <result>Succeed</result>
    <version>8.0.916.0</version>
    <size>20 </size>
    </package>
    <package>
    <description>Sterownik ekranu AMD</description>
    <result>Succeed</result>
    <version>14.501.1003.0000</version>
    <size>90 </size>
    </package>
    <package>
    <description>AMD Accelerated Video Transcoding</description>
    <result>Succeed</result>
    <version>13.30.100.41120</version>
    <size>3 </size>
    </package>
    <package>
    <description>AMD Catalyst Control Center</description>
    <result>Succeed</result>
    <version>2014.1120.2123.38423</version>
    <size>150 </size>
    </package>
    <package>
    <description>AMD Gaming Evolved App</description>
    <result>Succeed</result>
    <version>2.10.000</version>
    <size>49 </size>
    </package>
    </install>
    <uninstall>
    </uninstall>
    <downloaded>
    </downloaded>
    <resource>
    <hwinfo>Informacje o sprzęcie</hwinfo>
    <existpkg>Istniejące pakiety</existpkg>
    <pkg2inst>Pakiety do zainstalowania</pkg2inst>
    <pkg2uninst>Pakiety do odinstalowania</pkg2uninst>
    <otherdev>Inne wykryte urządzenia</otherdev>
    <errmsg>Komunikaty o błędach</errmsg>
    <name>Nazwa</name>
    <manufacture>Producent</manufacture>
    <chiptype>Typ układu scalonego</chiptype>
    <chipid>Ident. urządzenia</chipid>
    <otherhw>Inny sprzęt</otherhw>
    <download>Pobierz pakiety</download>
    <succeed>Powodzenie</succeed>
    <fail>Niepowodzenie</fail>
    <vendorid>Ident. dostawcy</vendorid>
    <classcode>Kod klasy</classcode>
    <revisionid>Identyfikator wersji</revisionid>
    <ssid>Identyfikator podsystemu</ssid>
    <ssvid>Identyfikator dostawcy podsystemu</ssvid>
    <header1>Program Menedżer Instalacji Catalyst™</header1>
    <header2>Raport z instalacji</header2>
    <finalstatus>Stan końcowy:</finalstatus>
    <versionofitem>Wersja elementu:</versionofitem>
    <size>Rozmiar:</size>
    <bytes>MB</bytes>
    </resource>
    </monetreport>

    hi skladzien,
    Welcome to the Forums.
    For systems that have two GPU (Intel + AMD), you will need to update both the GPU drivers for Win8.1 for the graphics switching to work (chances are, the system is not switching properly to the Radeon HD8750M when playing games and it's only using the Intel Graphics):
    Things to try:
    1. Navigate to the Control Panel (icon views) > Programs and Features and uninstall anything that relates to Intel Graphics and AMD / ATI Graphics drivers (reboot if necessary).
    2. Install these drivers in order and reboot if necessary:
    1st: - Intel Video Driver for Windows 8.1 (32-bit, 64-bit)
    2nd:- AMD Video Driver for Windows 8.1 (32-bit, 64-bit)
    3. Set the power settings of the unit to High Performance and configure the AMD Control Center to max performance.
    - Sample image
    - Sample image
    - Sample image
    When finished, try running a game and observe the FPS.
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Windows 8.1 graphics drivers - pavilion dv6 6c60ec

    Hello, I recently upgraded form windows 8 to windows 8.1, everything went fine without any errors, but when I tried to start any game I got error with DirectX (for my Intel HD 3000 card) so I couldnt play anything. I was looking for hours on google and any graphics drivers for my radeon hd 7690M XT, in my device manager I see 2 graphics cards - AMD Radeon HD 6700M Series and Intel HD Graphics 3000, actually i have these drivers:
     http://support.amd.com/en-us/download/mobile?os=Windows%208.1%20-%2064#amd-catalyst-packages
    Before I have tried these HP drivers, but my laptop couldn't even see them, my resolution was at 1024*768 and couldn't change:
     http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-112999-1&cc=cz&dlc=cs&lc=cs...
    When I installed the AMD drivers it seemed fine but at the end I got this report:
     <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="Report.xml.xsl"?>
    <monetreport xmlns:dt="urn:schemas-microsoft-com:datatypes">
    <general>
    <cmdline>-UI </cmdline>
    <time>05/28/14 11:40:03</time>
    <action>install</action>
    <download></download>
    </general>
    <dcm>
    <primary>
    <name>AMD Radeon Graphics Processor</name>
    <manufacture>Advanced Micro Devices, Inc.</manufacture>
    <chiptype></chiptype>
    <chipid>0x6740</chipid>
    <vendorid>0x1002</vendorid>
    <ssid>0x185e</ssid>
    <ssvid>0x103c</ssvid>
    <classcode>0x030000</classcode>
    <revisionid>0x00</revisionid>
    </primary>
    </dcm>
    <exist>
    </exist>
    <install>
    <package>
    <description>Správce instalace aplikace AMD Catalyst</description>
    <result>Succeed</result>
    <version>8.0.916.0</version>
    <size>20 </size>
    </package>
    <package>
    <description>Grafický ovladač AMD</description>
    <result>Succeed</result>
    <version>14.100.0.0000</version>
    <size>90 </size>
    </package>
    <package>
    <description>Microsoft Visual C++ 2012 Redistributable 64bit</description>
    <result>Succeed</result>
    <version>11.0.50727</version>
    <size>9 </size>
    </package>
    <package>
    <description>HydraVision</description>
    <result>Succeed</result>
    <version>4.2.252.0</version>
    <size>6 </size>
    </package>
    <package>
    <description>AMD Accelerated Video Transcoding</description>
    <result>Succeed</result>
    <version>13.30.100.40417</version>
    <size>3 </size>
    </package>
    <package>
    <description>AMD Catalyst Control Center</description>
    <result>Succeed</result>
    <version>2014.0417.2226.38446</version>
    <size>150 </size>
    </package>
    <package>
    <description>AMD Gaming Evolved App</description>
    <result>Succeed</result>
    <version>1.10.000</version>
    <size>49 </size>
    </package>
    </install>
    <uninstall>
    </uninstall>
    <downloaded>
    </downloaded>
    <resource>
    <hwinfo>Informace o hardwaru</hwinfo>
    <existpkg>Existující balíčky</existpkg>
    <pkg2inst>Balíčky pro instalaci</pkg2inst>
    <pkg2uninst>Balíčky pro odinstalaci</pkg2uninst>
    <otherdev>Jiná detekovaná zařízení</otherdev>
    <errmsg>Chybové zprávy</errmsg>
    <name>Název</name>
    <manufacture>Výrobce</manufacture>
    <chiptype>Typ čipu</chiptype>
    <chipid>ID zařízení</chipid>
    <otherhw>Jiný hardware</otherhw>
    <download>Stáhnout balíčky</download>
    <succeed>Úspěch</succeed>
    <fail>Neúspěch</fail>
    <vendorid>ID dodavatele</vendorid>
    <classcode>Kód třídy</classcode>
    <revisionid>ID revize</revisionid>
    <ssid>ID subsystému</ssid>
    <ssvid>ID dodavatele subsystému</ssvid>
    <header1>Správce instalace Catalyst™</header1>
    <header2>Zpráva o instalaci</header2>
    <finalstatus>Konečný stav:</finalstatus>
    <versionofitem>Verze položky:</versionofitem>
    <size>Velikost:</size>
    <bytes>MB</bytes>
    </resource>
    </monetreport>
    It just said the installation completed fine but with warnings. I tried to disable my Intel 3000 HD to see how my Radeon graphics works and launched one game after the driver install - but it was laggy as hell, so i closed the game and I got the error like "AMD Driver is not installed or it doesn't work properly. Please install the AMD driver." (sorry for bad translation).
    Im really exhausted of searching on google, i've done that really for hours... please help.
    This question was solved.
    View Solution.

    Hey mate! I have solved my problem! I was calling to an HP technician and he told me that there is NO OFFICIAL way to solve my problem because there are no official drivers for me. Anyway he said there is an UNOFFICIAL way to do it but it's on my own risk and HP does not take any responsibility for its functionality so i gave him my phone number and an email, he sent me the site where are the drivers so i tried it as a last chance (otherwise i would downgrade to win 8.0) and it works! I'm so happy that he told me about that site... I'm not sure about the rules on the forums so i won't post the link in here, but if you want to know more just send me an email to [email protected]
    I wish you an happy day cause it's definitely a great day for me!

  • How to receive the images / binary data t ype

    How to receive the images / binary data type in webdynpro....
    i have a website that let's the user send email, the email attachment and message are stored in both in images data type....
    q1) can i stored the message into binary data type...but the message is very long.....
    q2) if i have a textbox ...i surely will need to display the message  in string ,right ?
    [......... msg here ........]
    what is the codes to receive the images / binary data type in webdynpro....

    As in your previous post if you are storing them as BLOB object.. am sure you are able to get a byte stream or byte array(bytes[]) out of it.
    There should be some way to identify if its a image or a message BLOB. If its a image , convert into bytes and use 
       WDWebResource.getWebResource(bytes,resource type).getAbsoluteURL()
    to obtain the url.. assign this image UI element..
    In case its the message , use bytes.toString to get the message ..
    Regards
    Bharathwaj

  • Writing PSD with layers

    I'm trying to generate a Photoshop file with Adjustment Layers. Does anyone have any pointers, or know of any methods of diagnosing problems in the file?
    I've been able to make a file with multiple image layers which opens correctly in Photoshop. But when I try to make an adjustment layer, Photoshop won't open it, giving me the error: "Could not complete your request because the file is not compatible with this version of Photoshop." I've tried adding various Image Resources and other bits, to no avail.
    The few third party PSD parsers I've used don't seem to find any problem with the files I generate. For example, "psdparse" gives a very verbose breakdown of the file, and finds no errors.
    Here's a link to a sample file: http://bensyverson.com/share/photoshop/test.psd (warning: 15MB link)
    And here's the psdparse output:
    Processing "../../Adobe/test.psd"
      PSD (version 1), 3 channels, 1936 rows x 2592 cols, 8 bit RGBColor
      (color mode data is empty)
    Image resources (506 bytes):
      resource '8BIM' ( 1028,""):   15 bytes [IPTC-NAA record (File Info)]
      resource '8BIM' ( 1005,""):   16 bytes [ResolutionInfo]
        Resolution 72 x 72 pixels per inch
      resource '8BIM' ( 1026,""):    4 bytes [Layers group info]
      resource '8BIM' ( 1011,""):    8 bytes [Print flags]
      resource '8BIM' ( 1034,""):    1 bytes [Copyright flag]
      resource '8BIM' (10000,""):   10 bytes [Print flags info]
      resource '8BIM' ( 1013,""):   72 bytes [Color halftoning info]
      resource '8BIM' ( 1016,""):  112 bytes [Color transfer functions]
      resource '8BIM' ( 1024,""):    2 bytes [Layer state info]
      resource '8BIM' ( 1032,""):   16 bytes [Grid and guides info]
      resource '8BIM' ( 1057,""):   45 bytes [Version Info]
      resource '8BIM' ( 1044,""):    4 bytes [Document specific IDs]
      resource '8BIM' ( 1069,""):    6 bytes [Layer Selection ID(s)]
      resource '8BIM' ( 1010,""):   10 bytes [Background color]
      resource '8BIM' ( 1041,""):    1 bytes [ICC Untagged Profile]
    2 layers:
      layer 0: (   0,   0,1936,2592), 3 channels (1936 rows x 2592 cols)
        channel  0: 5018114 bytes, id= 0  (R)
        channel  1: 5018114 bytes, id= 1  (G)
        channel  2: 5018114 bytes, id= 2  (B)
      (extra data: 256 bytes @ 602)
      (no layer mask)
      ...skipped layer blending ranges (40 bytes)
        name: "Background"
      layer 1: (   0,   0,   0,   0), 5 channels (   0 rows x    0 cols)
        channel  0:       2 bytes, id=-1  (transparency mask)
        channel  1:       2 bytes, id= 0  (R)
        channel  2:       2 bytes, id= 1  (G)
        channel  3:       2 bytes, id= 2  (B)
        channel  4:       2 bytes, id=-2  (layer mask)
      (extra data: 324 bytes @ 922)
      (has layer mask)
      ...skipped layer blending ranges (40 bytes)
        name: "Curve"
    ## layer data begins @ 1246
    ## layer image data begins @ 1246
      layer 0 ("Background"):
      blending mode: sig='8BIM' key='norm'(normal) opacity=255(100%) clipping=0(base)
        flags=0x9(transp_prot(1) visible(0) bit4valid(1) pixel_data_irrelevant(0))
    Layer 0 additional data:
        data block: sig='8BIM' key='luni' length=     24
        (Unicode name = 'Background')
        data block: sig='8BIM' key='lnsr' length=      4
        (Layer name source = 'bgnd')
        data block: sig='8BIM' key='lyid' length=      4
        (Layer ID = 1)
        data block: sig='8BIM' key='clbl' length=      4
        (Blend clipping = 1)
        data block: sig='8BIM' key='infx' length=      4
        (Blend interior = 0)
        data block: sig='8BIM' key='knko' length=      4
        (Knockout = 0)
        data block: sig='8BIM' key='lspf' length=      4
        (Protected = 5)
        data block: sig='8BIM' key='lclr' length=      8
        data block: sig='8BIM' key='shmd' length=      4
        data block: sig='8BIM' key='fxrp' length=     16
        (Reference point X=0 Y=0)
      channel 0:
    >>> channel id =  0 @    1246, 5018114 bytes
        compression = 0 (raw)
        uncompressed size 5018112 bytes (row bytes = 2592)
      channel 1:
    >>> channel id =  1 @ 5019360, 5018114 bytes
        compression = 0 (raw)
        uncompressed size 5018112 bytes (row bytes = 2592)
      channel 2:
    >>> channel id =  2 @ 10037474, 5018114 bytes
        compression = 0 (raw)
        uncompressed size 5018112 bytes (row bytes = 2592)
      layer 1 ("Curve"):
      blending mode: sig='8BIM' key='norm'(normal) opacity=255(100%) clipping=0(base)
        flags=0x18(transp_prot(0) visible(0) bit4valid(1) pixel_data_irrelevant(1))
    Layer 1 additional data:
        data block: sig='8BIM' key='curv' length=     48
        data block: sig='8BIM' key='luni' length=     16
        (Unicode name = 'Curve')
        data block: sig='8BIM' key='lnsr' length=      4
        (Layer name source = 'cont')
        data block: sig='8BIM' key='lyid' length=      4
        (Layer ID = 2)
        data block: sig='8BIM' key='clbl' length=      4
        (Blend clipping = 1)
        data block: sig='8BIM' key='infx' length=      4
        (Blend interior = 0)
        data block: sig='8BIM' key='knko' length=      4
        (Knockout = 0)
        data block: sig='8BIM' key='lspf' length=      4
        (Protected = 0)
        data block: sig='8BIM' key='lclr' length=      8
        data block: sig='8BIM' key='shmd' length=      4
        data block: sig='8BIM' key='fxrp' length=     16
        (Reference point X=0 Y=0)
      channel 0:
    >>> channel id = -1 @ 15055588, 2 bytes
        compression = 0 (raw)
        uncompressed size 0 bytes (row bytes = 0)
      channel 1:
    >>> channel id =  0 @ 15055590, 2 bytes
        compression = 0 (raw)
        uncompressed size 0 bytes (row bytes = 0)
      channel 2:
    >>> channel id =  1 @ 15055592, 2 bytes
        compression = 0 (raw)
        uncompressed size 0 bytes (row bytes = 0)
      channel 3:
    >>> channel id =  2 @ 15055594, 2 bytes
        compression = 0 (raw)
        uncompressed size 0 bytes (row bytes = 0)
      channel 4:
    >>> channel id = -2 @ 15055596, 2 bytes
    # layer mask (   0,   0,   0,   0) (   0 rows x    0 cols)
        compression = 0 (raw)
        uncompressed size 0 bytes (row bytes = 0)
    ## end of layer image data @ 15055598
      (global layer mask info section: 16 bytes)
    ## global additional info @ 15055618 (36 bytes)
        data block: sig='8BIM' key='Patt' length=      0
        (data: Pattern)
        data block: sig='8BIM' key='FMsk' length=     12
        (data: Filter mask)
        00 00 ff ff 00 00 00 00 00 00 00 32
      merged image:
    >>> merged image data @ 15055654
        compression = 1 (RLE)
        uncompressed size 15054336 bytes (row bytes = 2592)
      done.

    Thanks, Tom. The XML output of psdparse is much easier for me to interpret than the verbose console output I had been using.
    Incidentally, I think I solved my problem today. From what I can tell, Photoshop cannot handle files with adjustment layers when the Background layer's compression is set to Raw (uncompressed). It's interesting, because PS has no problem opening my images with multiple uncompressed image layers, but as soon as I threw an adjustment layer in there, PS complained ("not compatible with this version of Photoshop").
    Switching to RLE for the background seemed to do the trick.
    Just an FYI / heads-up for anyone banging their head against this some time in the future.

  • ImageIcon not loading from Jar file

    Hi,
    I'm developing an application that uses ImageIcons in JButtons.
    The images are stored in the following relative dir:
    images/<filename>.jpg
    They load fine when I run the application from class files in the appropriate directory.
    However when I jar everything, my ImageIcons don't load.
    I know that my jar file is in the classpath, because other items in the jar file load successfully.
    I've tried everything the related threads recommend, but still nothing.
    When I try to launch from the jar file, the ClassLoader.getResource("filepath"); returns null.
    Whereas when I launch the class files, it returns the correct URL for the image.
    What am I missing? Is this jar file security-related? Do I need to sign the jar file with all-permissions?
    Any suggestions would be gratefully appreciated.
    I'm using java 1.4.2_01-b06
    Much thanks,
    -Jeroen

    Here is a little load program that you can use.
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    * <p>Resources extracts all the resources from a jar file into binary large
    * objects. These objects can be used to create images or read as streams.
    * This class is implemented as a singleton model.</p>
    * <p>An attempt is made to find the path to the jar file in
    * if this file is not found no resources are
    * loaded.
    * @author Michael Couck
    * @version 1.00, 16/01/2004
    public final class Resources extends Constants {
          * The only instance of this class
         private static Resources resources;
          * Hashtables for the sizes of the entries in the jar
         private static Hashtable sizes= new Hashtable();
          * Hashtable for each entry in the jar as a blob
         private static Hashtable contents= new Hashtable();
          * Flag to test if the resources were loaded correctly
         private static boolean resourcesLoaded= false;
          * Initilises the <code>static</code> instance of the
          * <code>Resources</code> instance.
         public static void initiliseResources() {
              if (resources == null)
                   resources= new Resources();
          * Instanciates a <code>Resources</code> object.
         private Resources() {
              init();
          * Returns a resource as a <code>byte</code> array, which can then be used
          * as a <code>ByteArrayInputStream</code> to instanciate among other things
          * images and property files.
          * @param name a resource name. This is the path to the recource from the
          *         root of the jar file.
         public static byte[] getResourceAsByteArray(String name) {
              if (resources == null)
                   resources= new Resources();
              return (byte[]) Resources.contents.get(name);
          * Returns true if the resources were correctly loaded
         public static boolean resourcesLoaded() {
              return resourcesLoaded;
          * Reads the jar file and inserts the contents
          * into the Hashtables.
         public void init() {
              try {
                   //Sizes into the table     
                                                                    File jar= new File("[path to]/yourjar.jar");
                   if (jar != null && jar.exists()) {
                        //Found the path to this jar file
                        ZipFile zipFile= new ZipFile(jar);
                        Enumeration enum= zipFile.entries();
                        while (enum.hasMoreElements()) {
                             ZipEntry zipEntry= (ZipEntry) enum.nextElement();
                             sizes.put(
                                  zipEntry.getName(),
                                  new Integer((int) zipEntry.getSize()));
                        zipFile.close();
                        //Contents into the table
                        FileInputStream fis= new FileInputStream(jar);
                        BufferedInputStream bis= new BufferedInputStream(fis);
                        ZipInputStream zis= new ZipInputStream(bis);
                        ZipEntry zipEntry= null;
                        while ((zipEntry= zis.getNextEntry()) != null) {
                             if (zipEntry.isDirectory()) {
                                  continue;
                             int size= (int) zipEntry.getSize();
                             // -1 means unknown size.
                             if (size == -1) {
                                  size=
                                       ((Integer) sizes.get(zipEntry.getName()))
                                            .intValue();
                             byte[] blob= new byte[(int) size];
                             int readBuffer= 0;
                             int buffer= 0;
                             while (((int) size - readBuffer) > 0) {
                                  buffer=
                                       zis.read(blob, readBuffer, (int) size - readBuffer);
                                  if (buffer == -1) {
                                       break;
                                  readBuffer += buffer;
                             contents.put(zipEntry.getName(), blob);
                        resourcesLoaded= true;
              } catch (NullPointerException e) {
                   Constants.logger.severe(e.getMessage());
                   StackTraceElement[] stackTrace= e.getStackTrace();
                   for (int i= 0; i < stackTrace.length; i++) {
                        Constants.logger.severe(stackTrace.toString());
                   resourcesLoaded= false;
              } catch (FileNotFoundException e) {
                   Constants.logger.severe(e.getMessage());
                   StackTraceElement[] stackTrace= e.getStackTrace();
                   for (int i= 0; i < stackTrace.length; i++) {
                        Constants.logger.severe(stackTrace[i].toString());
                   resourcesLoaded= false;
              } catch (IOException e) {
                   Constants.logger.severe(e.getMessage());
                   StackTraceElement[] stackTrace= e.getStackTrace();
                   for (int i= 0; i < stackTrace.length; i++) {
                        Constants.logger.severe(stackTrace[i].toString());
                   resourcesLoaded= false;
    } //End Resources
    You can get the icons with "new ImageIcon(new ByteArrayResources.getResourceAsByteArray(String name));
    See ya
    Michael

  • 2004s file download (how to not store files in context?)

    Hi,
    I want to use FileDownload element in my web dynpro application.
    I use the new type resource  and my own input source implementation, which generates files on the fly.
    Each download call should result in a new file. These files can be very large (some MB).
    For obvious reasons I don't want the server to store the byte data in application context (200 users * 2 MB ....)
    How can I do this?
    If I use resource as context element and set debug points on my input stream, I can see the data is read just on time if the user wants to download.
    I create my data in my inputstream and the download starts. So far so good.
    On the second click on the download link the download starts without any read operation. Thats the problem.
    Possible reasons:
    First: the data is read and stored to the context on the first download. this would be bad! context would get very very large. not working for me.
    second: the browser or the server caches the data. how can I avoid this?
    thx in advance
    btw I read a tutorial about up and downloading. this pointed to an additional article called something like "downloading in web dynpro tables". But I can't find it. There the on demand downloading should be explained. any help would be great.

    Hallo Thomas,
    ok, the "default" on-demand streaming solution caches a Web Resource but does not re-calculate it again afterwards.
    I wrote a Wiki Code Tutorial which demonstrates how to download an Excel File from a Web Dynpro table UI element on-demand. In this scenario the resource must also be re-created on every request. The solution is based on re-initializing the context with a new  0-byte resource objects within the calculated context attribute getter method.
    See <a href="https://wiki.sdn.sap.com/wiki/display/Snippets/ExportingTableDatainWebDynproJava-SAPNetWeaver04s">Exporting Table Data in Web Dynpro Java - SAP NetWeaver 04s</a>
    For you the most important line of code in
    //@@begin javadoc:getExcelResourceOnDemStreamCalc(IPrivateExcelExportComp.IExcelElement)
       *  Declared getter method for attribute ResourceOnDemStreamCalc of node ExcelResource
       *  @param element the element requested for the value
       *  @return the calculated value for attribute ResourceOnDemStreamCalc
      //@@end
      public com.sap.tc.webdynpro.progmodel.api.IWDInputStream getExcelResourceOnDemStreamCalc(IPrivateExcelExportComp.IExcelElement element)
        //@@begin getExcelResourceOnDemStreamCalc(IPrivateExcelExportComp.IExcelElement)
        IWDInputStream excelOnDemandStream = null;
        try {
          excelOnDemandStream =
            WDResourceFactory.createInputStream(toExcel(tableDataNode, tableColumnInfos).getBytes("UTF-8"));
        } catch (UnsupportedEncodingException e) {
          wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), true);
        // Reset context attribute 'Excel.Resource' again by creating a new 0-byte resource object.
        // Otherwise the on-demand Excel stream gets calculated only once as the resource object,
        // cached in the Web Dynpro Binary Cache on server-side, keeps the same.
        initializeOnDemandExcelResource();
        // Return excel on-demand input stream
        return excelOnDemandStream;
        //@@end
    is the method <b>call initializedOnDemandExcelResource()</b> re-initializing the context attribute with a new 0-byte resource object.
    //@@begin others
      //======= Private Methods ===========================
       * Create new on-demand resource instance for excel file. This method must be
       * invoked initially and in the calculated context attribute getter method (calculating)
       * the excel resource input stream. Otherwise the resource is streamed to the client only
       * once but not afterwards so that later updates of the table data are not reflected in the
       * streamed Excel file.
       * URL is stored in context so context in client component can map to it.
      private void initializeOnDemandExcelResource() {
        excel0ByteResource =
          WDResourceFactory.createResource(calcAttrPointer, "Table.xls", WDWebResourceType.XLS);
        excelResourceElement.setResource(excel0ByteResource);
        excelResourceElement.setResourceURL(
          excel0ByteResource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()));
    Regards, Bertram

  • I can't Download updates fro my G5

    I can't Download updates for my G5. I keep Getting this error Message " A networking error has occurred: zero byte resource (-1014). Make sure you can connect to the Internet, then try again." But I do have an Internet connection. What is causing this problem? Oh, and my fans have become noisey like their working to hard..HELP!!
    Thanks

    Here's Apple doc.#106695 on trouble shooting Software Update.
    Cheers!
    DALE

  • Os 10.3.9 updates

    My grandson is running OS 10.3.9. When I try to use update I get an error message: zero byte resource(-1014). I looked at all the error message numbers on this site but couldn't find this one. Also, when he attempts to upgrade his iPod or iTunes, nothing happens and then it just quits.

    The Admin account is the account that is initially setup when you install OS X; you should create User Accounts with non-Admin privileges after that.
    You should NEVER use the Admin account as a User Account, since it gives access to root, which can be used to compromise the security of your system. If these problems are happening at the root account, you should create a User Account now and test iTunes and the Software Update in that account to see if the problem is system-wide or limited to the Admin account.
    If the problem is not in the new User account, then you should backup your purchased music as both music files and data files to a CD if you have enough space, then create a new Admin account, and delete the old Admin account.
    Mulder

  • How to get byte array from jpg in resource for Image XObject?

    Hi,
    Does anyone know how to get an array of bytes from a jpg from resource without an external library except MFC?
    The array of bytes is needed to create an Image XObject so it can be included in an appearance for an annotation.

    Sounds like a standard Windows programming question, not specific to the SDK.

  • Adobe Flash Resource Problems

    I seem to be having problems with Flash Player in all my browsers when watching streaming videos. Flash Player tends to hoard a very large percentage (often 100%) of my CPU resources.  The effect on my computer is frame loss. I do not have this problem on web video like netflix. I have already stopped almost all non essential processes to maximize available CPU.
    My computer specs are as follows:
    Chrome: Version 34.0.1847.131 m
    ActiveX Version of adobe: 13,0,0,206
    Plug-in Version: 13,0,0,206
    Adobe Air: 13.0.0.83
    ------------------Overview------------------
    Processor : Intel(R) Core(TM)2 Duo CPU     T9600  @ 2.80GHz
    Memory : 8156MB(1066)
    Mother Board : 0Y536R
    Windows Version : Microsoft Windows 7 Professional Service Pack 1
    Video Adapter : ATI Mobility Radeon HD 4670
    Disk Drive : OCZ-AGILITY4 ATA Device(238GB,IDE)
    DVD/CD-ROM Drive : HL-DT-ST DVDRWBD CA10N ATA Device
    ------------------Operating System------------------
    OS Name : Microsoft Windows 7 Professional Service Pack 1
    OS Version : 6.1.7601
    Internet Explorer : 9.11.9600.17041
    DirectX : 4.09.00.0904
    ------------------System Devices------------------
    Motherboard Name : 0Y536R
    Motherboard Manufacturer : Dell Inc.
    BIOS Version : A15
    System BIOS Date : 04/09/11
    Video BIOS Date : 09/06/09
    CPU Identification : Intel(R) Core(TM)2 Duo CPU     T9600  @ 2.80GHz
    CPU Generic Name : Intel64 Family 6 Model 7 Stepping 10
    CPU Vendor : GenuineIntel
    CPU Frequency : 2772 MB
    L1 Code Cache : Code L1 Cache, 32 KB, 8 ways, 64 byte lines
    L1 Data Cache : Data L1 Cache, 32 KB, 8 ways, 64 byte lines
    L2 Cache :
    CPU Socket : U2E1
    Core Per Package : 2
    Logical Per Core : 2
    ------------------Drives------------------
    (C:)
    Disk Letter : C:
    Device Type : Local Fixed Disk
    File System : NTFS
    Total Bytes : 255,953,203,200 B
    Bytes Free : 88,843,386,880 B
    Bytes Used : 167,109,816,320 B
    File Compression Enabled : Yes
    Volume is Compressed : No
    Long File Name Enabled : Yes
    Unicode File Name Enabled : Yes
    Encrypted File System : Yes
    Numbers of Clusters : 62,488,575
    Free Clusters : 21,690,280
    Used Clusters : 40,798,295
    Bytes per Cluster : 4,096 bytes
    Sectors per Cluster : 8
    Used Sectors : 326,386,360
    Free Sectors : 173,522,240
    Bytes per Sector : 4,096 bytes
    Total Sectors : 499,908,600
    -----------------Display------------------
    Device Description : ATI Mobility Radeon HD 4670
    Adapter String : ATI display adapter (0x9488
    BIOS String : -
    Chip Type : ATI display adapter (0x9488)
    DAC Type : Internal DAC(400MHz)
    Driver Date : 2013-04-29
    Driver Version : 8.970.100.1100
    Driver Provider : Advanced Micro Devices, Inc.
    Memory Size : 1024 MB
    ------------------Network------------------
    Network Adapter : Bluetooth Device (Personal Area Network)
    Network Adapter : Broadcom NetLink (TM) Gigabit Ethernet
    Network Adapter : Intel(R) WiFi Link 5300 AGN
    ------------------Other Devices------------------
    Bluetooth Hands-free Audio
    AMD High Definition Audio Device
    IDT High Definition Audio CODEC

    Problem is with Adobe On-line installer of Flash player, which is very buggy and almost always crashes with some error. Please use full Off-line installer of Flash player, download from here:
    http://fpdownload.macromedia.com/get/flashplayer/current/licensing/mac/install_f lash_player_11_osx.dmg

  • Your computer appears to be correctly configured, but the device or resource (DNS server) is not responding [and I'm at my wit's end!]

    I originally posted this question to the community section and was advised to post it here.  Please bear with me as this will be a long post.  I'm including the scenarios involving this reoccurring issue, the trouble shooting steps I've already
    taken and the results of several diagnostic tools and logs.
    I have a Sony VAIOS VPCEBB33FM lap top since 2011.  I have had this issue on an off for a long time.  I'm at my wit's end.  Any new insights or suggestions would be greatly appreciated.
    Scenario Details
    1)  Some times it's on and off through out the day, sometimes it won't work all day, and once in a while it will work fine for the entire day.
    2)  I've had this issue across several wireless services, Clear Network accessed with WiMax, Library Wi-fi, Comcast cable internet using wireless router and Wi-fi, and Comcast Xfinity Wi-Fi, to name a few examples.
    3)  Other devices in the household or library will work with no problems such as my smart phone or my roommates' laptops or desktop computers.
    4) Once in a while,  the built-in wireless adapter is not found and I have to reinstall the driver.  Also the diagnostic tool has had to reset my adapter on an increasing basis.
    5)  I had my hard drive replaced in December 2014 and my system restored from the System Restore disks that came with it when I bought the laptop.  Even though I've been online on an infrequent basis it worked just fine for a while. Now that
    I've been online a bit more I'm having the same issues again.
    Below are my attempts at trouble shooting so far but I still have not been able to consistently resolve my DNS issues
     1) Restarting my adapter
     2) Turning off my laptop and removing the power supply for 5-10 minutes before turning it back on.
     3)  Using the IP Config in Command Prompt
         ipconfig /flushdns
         ipconfig /registerdns
         ipconfig /release
         ipconfig /renew
     4) Using the NetSh reset in Command Prompt and restarting my laptop
         netsh int ip reset c:\resetlog.txt
         netsh winsock reset
         ipconfig /flushdns
         [restart laptop]
     5)  Configuring the TCP/IP in several settings
        Select Internet Protocol Version 4 (TCP/IPv4), and then click Properties.
        I have used the following settings:
           a) Obtain an DNS server address automatically
           b) OpenDNS
               208 67 222 222
               208 67 220 220
           c) Google DNS
               8 8 8 8
               8 8 4 4
     6) Updating the driver for my Intel Centrino(R) Advanced-N 6250 AGN and Intel Centrino(R) WIMAX 6250 from the Intel website previous having my laptop wiped clean in 2014.  It still did not resolve the issue.  My laptop
    manufacturer as not come up with an driver update for my adapter since 2010.  I haven't tried to update the adapter driver from Intel's website since having my laptop repaired due to the fact that Intel strongly recommending using the manufacturer's updates
    instead and frankly it didn't make much of a difference when I did it the first time.
     7) The last one I've tried as of today is going into Services and changing the start up type to automatic for the following:
           Computer Browser [changed from manual to automatic]
           DHCP Client [already set to automatic]
           DNS Client [already set to automatic]
           Network Connections [already set to automatic]
           Network Location Awareness [changed from manual to automatic]
           Remote Procedure Call (RPC) [already set to automatic]
           Server [already set to automatic]
           TCP/IP Netbios helper [already set to automatic]
           Workstation [already set to automatic]
    ...and I'm still having DNS issues.
    My only guessing are that my laptop came with a lemon adapter that needs to be replaced, some advanced setting(s) that I'm not aware off, or my firewall/anti-virus is interfering. I've used Symmantic Anti-virus and Firewall in the past and currently
    Avast Anti-Virus with Microsoft Network Firewall.  I've had DNS issues with both anti-virus/firewall set ups.
    Below are the results from the diagnostics and tests that I've ran.
    Windows Network Diagnostics
    Your computer appears to be correctly configured, but the device or resource (DNS server) is not responding Detected Detected
    Contact your network administrator or Internet service provider (ISP) Completed
    Windows can't communicate with the device or resource (DNS server). The computer or service you are trying to reach might be...
    Details about network adapter diagnosis:
    Network adapter Wireless Network Connection driver information:
       Description . . . . . . . . . . : Intel(R) Centrino(R) Advanced-N 6250 AGN
       Manufacturer  . . . . . . . . . : Intel Corporation
       Provider  . . . . . . . . . . . : Intel
       Version   . . . . . . . . . . . : 13.2.1.5
       Inf File Name . . . . . . . . . : C:\Windows\INF\oem17.inf
       Inf File Date . . . . . . . . . : Monday, June 14, 2010  9:05:44 AM
       Section Name  . . . . . . . . . : Install_MPCIEX_GEN_6250_AGN_2x2_HMC_WIN7_64_MOW
       Hardware ID . . . . . . . . . . : pci\ven_8086&dev_0087&subsys_13018086
       Instance Status Flags . . . . . : 0x180200a
       Device Manager Status Code  . . : 0
       IfType  . . . . . . . . . . . . : 71
       Physical Media Type . . . . . . : 9
    Informational Diagnostics Information (Wireless Connectivity)
    Details about wireless connectivity diagnosis:
    Information for connection being diagnosed
     Interface GUID: 70a0781d-6329-45e4-8d7c-34aeca294c39
     Interface name: Intel(R) Centrino(R) Advanced-N 6250 AGN
     Interface type: Native WiFi
    Connection incident diagnosed
     Auto Configuration ID: 1
     Connection ID: 1
    Connection status summary
     Connection started at: 2015-03-07 19:57:14-186
     Profile match: Success
     Pre-Association: Success
     Association: Success
     Security and Authentication: Success
    List of visible access point(s): 22 item(s) total, 22 item(s) displayed
            BSSID        BSS Type PHY    Signal(dB)    Chnl/freq    SSID
    60-02-92-C6-D3-E8    Infra     <unknown>    -62        11     HOME-C7D4-2.4
    60-02-92-A1-75-E0    Infra     <unknown>    -58        6     HOME-B917-2.4
    00-1D-D5-D5-34-F0    Infra     <unknown>    -73        6     HOME-34F2
    60-02-92-A1-75-E1    Infra     <unknown>    -58        6     (Unnamed Network)
    06-1D-D5-D5-34-F0    Infra     <unknown>    -78        6     xfinitywifi
    C4-27-95-C9-C4-2D    Infra     <unknown>    -57        1     HOME-C42D
    02-1D-D5-D5-34-F0    Infra     <unknown>    -74        6     (Unnamed Network)
    00-0D-97-07-E0-79    Infra     g    -75        6     (Unnamed Network)
    00-1D-CF-2A-44-C0    Infra     <unknown>    -86        6     HOME-44C2
    02-1D-CF-2A-44-C0    Infra     <unknown>    -86        6     (Unnamed Network)
    F8-E4-FB-3C-87-A2    Infra     <unknown>    -89        6     YVNM7
    06-1D-CF-2A-44-C0    Infra     <unknown>    -87        6     xfinitywifi
    0C-F8-93-7A-13-50    Infra     b    -87        6     PKennedy
    06-F8-93-7A-13-50    Infra     b    -89        6     xfinitywifi
    02-F8-93-7A-13-50    Infra     b    -87        6     (Unnamed Network)
    E0-88-5D-C8-A9-DC    Infra     <unknown>    -80        1     HOME-A9DC
    E2-88-5D-C8-A9-DD    Infra     <unknown>    -79        1     (Unnamed Network)
    16-CF-E2-43-0B-30    Infra     <unknown>    -88        1     xfinitywifi
    60-02-92-F0-A8-C0    Infra     <unknown>    -90        11     HOME-96A6-2.4
    60-02-92-C6-D3-E9    Infra     <unknown>    -63        11     (Unnamed Network)
    02-1D-D4-EB-87-00    Infra     <unknown>    -88        11     (Unnamed Network)
    06-1D-D4-EB-87-00    Infra     <unknown>    -88        11     xfinitywifi
    Connection History
     Information for Auto Configuration ID 1
      List of visible networks: 13 item(s) total, 13 item(s) displayed
      BSS Type PHY    Security    Signal(RSSI)    Compatible    SSID
      Infra     <unknown>    Yes        63    Yes        HOME-C7D4-2.4
      Infra     <unknown>    Yes        70    Yes        HOME-B917-2.4
      Infra     <unknown>    Yes        43    Yes        HOME-34F2
      Infra     <unknown>    Yes        70    Yes        (Unnamed Network)
      Infra     <unknown>    No        40    Yes        xfinitywifi
      Infra     <unknown>    Yes        71    Yes        HOME-C42D
      Infra     g    No        43    Yes        (Unnamed Network)
      Infra     <unknown>    Yes        28    Yes        HOME-44C2
      Infra     <unknown>    Yes        20    Yes        YVNM7
      Infra     b    Yes        21    Yes        PKennedy
      Infra     <unknown>    Yes        33    Yes        HOME-A9DC
      Infra     <unknown>    Yes        35    Yes        (Unnamed Network)
      Infra     <unknown>    Yes        16    Yes        HOME-96A6-2.4
      List of preferred networks: 3 item(s)
       Profile: xfinitywifi
        SSID: xfinitywifi
        SSID length: 11
        Connection mode: Infra
        Security: No
        Set by group policy: No
        Connect even if network is not broadcasting: No
        Connectable: Yes
       Profile: HTC Portable Hotspot 9F50
        SSID: HTC Portable Hotspot 9F50
        SSID length: 25
        Connection mode: Infra
        Security: Yes
        Set by group policy: No
        Connect even if network is not broadcasting: No
        Connectable: No
         Reason: 0x00028002
       Profile: belkin.332
        SSID: belkin.332
        SSID length: 10
        Connection mode: Infra
        Security: Yes
        Set by group policy: No
        Connect even if network is not broadcasting: No
        Connectable: No
         Reason: 0x00028002
     Information for Connection ID 1
     Connection started at: 2015-03-07 19:57:14-186
      Auto Configuration ID: 1
      Profile: xfinitywifi
      SSID: xfinitywifi
      SSID length: 11
      Connection mode: Infra
      Security: No
      Pre-Association and Association
       Connectivity settings provided by hardware manufacturer (IHV): No
       Security settings provided by hardware manufacturer (IHV): No
       Profile matches network requirements: Success
       Pre-association status: Success
       Association status: Success
        Last AP:  06-1d-d5-d5-34-f0
      Security and Authentication
       Configured security type: Open
       Configured encryption type: None
       802.1X protocol: No
       Key exchange initiated: Yes
        Unicast key received: No
        Multicast key received: No
       Number of security packets received: 0
       Number of security packets sent: 0
       Security attempt status: Success
     Connectivity
       Packet statistics
        Ndis Rx: 2068
        Ndis Tx: 2543
        Unicast decrypt success: 0
        Multicast decrypt success: 0
        Unicast decrypt failure: 0
        Multicast decrypt failure: 0
        Rx success: 3954
        Rx failure: 0
        Tx success: 537
        Tx failure: 4
        Tx retry: 2
        Tx multiple retry: 2
        Tx max lifetime exceeded: 0
        Tx ACK failure: 18
       Roaming history: 0 item(s)
    InformationalDiagnostics Information (Wireless Connectivity)
    Details about wireless connectivity diagnosis:
    For complete information about this session see the wireless connectivity information event.
    Helper Class: Auto Configuration
     Initialize status: Success
    Information for connection being diagnosed
     Interface GUID: 70a0781d-6329-45e4-8d7c-34aeca294c39
     Interface name: Intel(R) Centrino(R) Advanced-N 6250 AGN
     Interface type: Native WiFi
    Result of diagnosis: There may be problem
     Network Connection details from Command Prompt  (some info hidden for security reasons)
    Connection-specific DNS Suffix:
    Description: Intel(R) Centrino(R) Advanced-N 6250 AGN
    Physical Address: ‎00-23-15-54-19-B8
    DHCP Enabled: Yes
    IPv4 Address: 192.168.X.XX
    IPv4 Subnet Mask: 255.255.XX.X
    Lease Obtained: Saturday, March 07, 2015 7:57:14 PM
    Lease Expires: Saturday, March 07, 2015 8:24:44 PM
    IPv4 Default Gateway: 192.168.X.X
    IPv4 DHCP Server: 192.168.X.X
    IPv4 DNS Servers: 75.75.75.75, 75.75.76.76
    IPv4 WINS Server:
    NetBIOS over Tcpip Enabled: Yes
    Link-local IPv6 Address: fe80::b8de:3ac9:e166:XXX%XX
    IPv6 Default Gateway:
    IPv6 DNS Server:
    Results of Ping and Trace Route in Command Prompt
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Windows\system32>ping 127.0.0.1
    Pinging 127.0.0.1 with 32 bytes of data:
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    Ping statistics for 127.0.0.1:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 0ms, Average = 0ms
    C:\Windows\system32>ping www.youtube.com
    Pinging youtube-ui.l.google.com [173.194.121.6] with 32 bytes of data:
    Reply from 173.194.121.6: bytes=32 time=24ms TTL=55
    Reply from 173.194.121.6: bytes=32 time=19ms TTL=55
    Request timed out.
    Request timed out.
    Ping statistics for 173.194.121.6:
        Packets: Sent = 4, Received = 2, Lost = 2 (50% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 19ms, Maximum = 24ms, Average = 21ms
    C:\Windows\system32>ping 74.125.239.34
    Pinging 74.125.239.34 with 32 bytes of data:
    Request timed out.
    Request timed out.
    Reply from 74.125.239.34: bytes=32 time=3286ms TTL=50
    Request timed out.
    Ping statistics for 74.125.239.34:
        Packets: Sent = 4, Received = 1, Lost = 3 (75% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 3286ms, Maximum = 3286ms, Average = 3286ms
    C:\Windows\system32>ping www.hotmail.com
    Pinging dispatch.kahuna.glbdns2.microsoft.com [65.55.157.204] with 32 bytes of data:
    Reply from 65.55.157.204: bytes=32 time=111ms TTL=237
    Request timed out.
    Request timed out.
    Reply from 65.55.157.204: bytes=32 time=1537ms TTL=237
    Ping statistics for 65.55.157.204:
        Packets: Sent = 4, Received = 2, Lost = 2 (50% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 111ms, Maximum = 1537ms, Average = 824ms
    C:\Windows\system32>ping 207.46.11.236
    Pinging 207.46.11.236 with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.
    Ping statistics for 207.46.11.236:
        Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
    C:\Windows\system32>tracert www.youtube.com
    Tracing route to youtube-ui.l.google.com [173.194.121.5]
    over a maximum of 30 hops:
      1    19 ms    13 ms    17 ms  xfwsr12-nwca-01.sys.comcast.net [68.85.15.244]
      2    13 ms    13 ms    27 ms  ae-14-32767-ar03.newcastle.de.panjde.comcast.net [68.85.192.205]
      3    20 ms    26 ms    21 ms  he-5-10-0-0-cr01.ashburn.va.ibone.comcast.net [68.86.94.249]
      4    18 ms    34 ms    22 ms  he-0-13-0-0-pe07.ashburn.va.ibone.comcast.net [68.86.86.50]
      5    19 ms    18 ms    18 ms  50-248-116-190-static.hfc.comcastbusiness.net [50.248.116.190]
      6    35 ms    18 ms    18 ms  209.85.249.217
      7    21 ms    19 ms    19 ms  72.14.233.93
      8     *        *        *     Request timed out.
      9     *     2509 ms   677 ms  iad23s25-in-f5.1e100.net [173.194.121.5]
    Trace complete.
    C:\Windows\system32>tracert 74.125.239.34
    Tracing route to nuq04s19-in-f2.1e100.net [74.125.239.34]
    over a maximum of 30 hops:
      1    54 ms    23 ms    12 ms  xfwsr12-nwca-01.sys.comcast.net [68.85.15.244]
      2    22 ms    19 ms    17 ms  ae-14-32767-ar03.newcastle.de.panjde.comcast.net[68.85.192.205]
      3    19 ms    19 ms    18 ms  he-5-14-0-0-cr01.ashburn.va.ibone.comcast.net [68.86.166.121]
      4    18 ms    18 ms    18 ms  he-0-15-0-0-cr01.350ecermak.il.ibone.comcast.net[68.86.85.74]
      5    19 ms    18 ms    22 ms  50-248-116-190-static.hfc.comcastbusiness.net [50.248.116.190]
      6    22 ms    36 ms    19 ms  209.85.249.217
      7    26 ms    23 ms    25 ms  209.85.143.112
      8     *        *        *     Request timed out.
      9     *        *        *     Request timed out.
     10   972 ms     *        *     216.239.51.97
     11   148 ms    97 ms    95 ms  216.239.46.241
     12   324 ms   130 ms   432 ms  209.85.246.252
     13     *        *        *     Request timed out.
     14  1403 ms   101 ms   126 ms  nuq04s19-in-f2.1e100.net [74.125.239.34]
    Trace complete.
    C:\Windows\system32>tracert www.hotmail.com
    Tracing route to dispatch.kahuna.glbdns2.microsoft.com [65.55.157.144]
    over a maximum of 30 hops:
      1    13 ms    13 ms    25 ms  xfwsr12-nwca-01.sys.comcast.net [68.85.15.244]
      2    13 ms    15 ms    13 ms  ae-14-32767-ar03.newcastle.de.panjde.comcast.net[68.85.192.205]
      3    20 ms    19 ms    17 ms  he-5-13-0-0-cr01.ashburn.va.ibone.comcast.net [68.86.95.145]
      4    17 ms    20 ms    20 ms  he-0-13-0-0-pe07.ashburn.va.ibone.comcast.net [68.86.86.50]
      5    17 ms    18 ms    38 ms  as8075-2-c.ashburn.va.ibone.comcast.net [173.167.58.82]
      6    18 ms    18 ms    36 ms  ae4-0.ash-96cbe-1a.ntwk.msn.net [207.46.36.172]
      7     *        *        *     Request timed out.
      8     *     2191 ms    35 ms  ae0-0.atb-96cbe-1b.ntwk.msn.net [191.234.81.167]
      9     *        *        *     Request timed out.
     10     *        *        *     Request timed out.
     11    86 ms    84 ms    84 ms  ae4-0.lax-96cbe-1a.ntwk.msn.net [191.234.83.150]
     12    86 ms    86 ms    87 ms  ae9-0.by2-96c-1a.ntwk.msn.net [207.46.42.176]
     13     *        *        *     Request timed out.
     14     *        *        *     Request timed out.
     15     *        *        *     Request timed out.
     16     *        *        *     Request timed out.
     17    87 ms    84 ms    85 ms  origin.by173w.bay173.mail.live.com [65.55.157.144]
    Trace complete.
    C:\Users\C.Cunningham>tracert 207.46.11.236
    Tracing route to origin.by181w.bay181.mail.live.com [207.46.11.236]
    over a maximum of 30 hops:
      1    16 ms    16 ms    19 ms  xfwsr12-nwca-01.sys.comcast.net [68.85.15.244]
      2    18 ms    13 ms    13 ms  ae-14-32767-ar03.newcastle.de.panjde.comcast.net[68.85.192.205]
      3    21 ms    19 ms    21 ms  he-5-12-0-0-cr01.ashburn.va.ibone.comcast.net [68.86.95.141]
      4    18 ms    21 ms    18 ms  he-0-13-0-0-pe07.ashburn.va.ibone.comcast.net [68.86.86.50]
      5     *        *        *     Request timed out.
      6     *        *        *     Request timed out.
      7     *        *        *     Request timed out.
      8     *        *        *     Request timed out.
      9     *        *        *     Request timed out.
     10     *        *        *     Request timed out.
     11     *        *        *     Request timed out.
     12     *        *        *     Request timed out.
     13     *        *        *     Request timed out.
     14     *        *        *     Request timed out.
     15     *        *        *     Request timed out.
     16     *        *        *     Request timed out.
     17     *        *        *     Request timed out.
     18     *        *        *     Request timed out.
     19     *        *        *     Request timed out.
     20     *        *        *     Request timed out.
     21     *        *        *     Request timed out.
     22     *        *        *     Request timed out.
     23     *        *        *     Request timed out.
     24     *        *        *     Request timed out.
     25     *        *        *     Request timed out.
     26     *        *        *     Request timed out.
     27     *        *        *     Request timed out.
     28     *        *        *     Request timed out.
     29     *        *        *     Request timed out.
     30     *        *        *     Request timed out.
    Trace complete.
    Results of Intel WiFi Manual Diagnostics
    Test Name                 Test Result   Test Summary
    Hardware Test           Passed        Wireless Hardware is enabled
    Driver Test                 Passed        Diver is loaded. NETwNs64 Version 13.3.0.24
    Radio Test                  Passed       Radio is ON
    Scan Test                   Passed       There are 25 Networks available to connect
    Association Test        Passed       Associated
    Authentication Test   Passed       Authenticated
    Signal Test                Passed       Signal Quality: Poor
    Ping Test                  Failed          No Reponse: default gateway, DHCP server
    I hope this information is enough to get to the root of this problem once and for all.  Please let me know if you any other information such as event logs or statistics. 
    Thanks in advance.

    Results of Intel WiFi Event View Log (I deleted some lines since there were basically repeats of the same messages)
    #Event  Source  Time     
    Error Severity    Domain               
    User      Description
    45           EvtEngine           
    3/8/2015 20:40  Success               
    Connection         SYSTEM               
    iAMT - Failed to read Windows Events Log
    46           S24EvMon          
    3/8/2015 20:41  Information       
    AppDriver          
    SYSTEM               
    Getting List of adapters.
    47           S24EvMon          
    3/8/2015 20:41  Information       
    AppDriver          
    SYSTEM               
    Intel adapter(s) found.
    156         S24EvMon          
    3/8/2015 20:47  Information       
    Driver    SYSTEM               
    AddToExclude 06:1d:d5:d5:34:f0 xfinitywifi 6 WEV_EXCLUDE_LIST_REASON_802_11_AUTH_FAILURE
    157         S24EvMon          
    3/8/2015 20:47  Information       
    Driver    SYSTEM               
    ATC 06:1d:cf:2a:44:c0 xfinitywifi 6 RSSI=-88
    158         S24EvMon          
    3/8/2015 20:47  Error     
    Driver    SYSTEM               
    AssociationFailure 06:1d:cf:2a:44:c0 xfinitywifi 6 CNCT_GENERAL_FAILURE
    159         S24EvMon          
    3/8/2015 20:47  Information       
    Driver    SYSTEM               
    AddToExclude 06:1d:cf:2a:44:c0 xfinitywifi 6 WEV_EXCLUDE_LIST_REASON_802_11_ASSOC_FAILURE
    160         S24EvMon          
    3/8/2015 20:47  Information       
    Driver    SYSTEM               
    ATC 06:1d:d5:d5:34:f0 xfinitywifi 6 RSSI=-79
    161         S24EvMon          
    3/8/2015 20:47  Success               
    Driver    SYSTEM               
    RxAuthSuccess 06:1d:d5:d5:34:f0 6
    162         S24EvMon          
    3/8/2015 20:47  Success               
    Driver    SYSTEM               
    RxAssocResp 06:1d:d5:d5:34:f0 6 -77
    163         S24EvMon          
    3/8/2015 20:49  Information       
    TCP/IP  SYSTEM               
    VoIP: Got link down - deleting flows .
    164         S24EvMon          
    3/8/2015 20:49  Information       
    Driver    SYSTEM               
    ATC 06:1d:d4:eb:87:00 xfinitywifi 11 RSSI=-88
    165         S24EvMon          
    3/8/2015 20:49  Error     
    Driver    SYSTEM               
    AssociationFailure 06:1d:d4:eb:87:00 xfinitywifi 11 CNCT_GENERAL_FAILURE
    166         S24EvMon          
    3/8/2015 20:49  Information       
    Driver    SYSTEM               
    AddToExclude 06:1d:d4:eb:87:00 xfinitywifi 11 WEV_EXCLUDE_LIST_REASON_802_11_ASSOC_FAILURE
    167         S24EvMon          
    3/8/2015 20:49  Information       
    Driver    SYSTEM               
    ATC 06:1d:d4:eb:87:00 xfinitywifi 11 RSSI=-89
    168         S24EvMon          
    3/8/2015 20:49  Error     
    Driver    SYSTEM               
    AssociationFailure 06:1d:d4:eb:87:00 xfinitywifi 11 CNCT_GENERAL_FAILURE
    169         S24EvMon          
    3/8/2015 20:49  Information       
    Driver    SYSTEM               
    AddToExclude 06:1d:d4:eb:87:00 xfinitywifi 11 WEV_EXCLUDE_LIST_REASON_802_11_ASSOC_FAILURE
    170         S24EvMon          
    3/8/2015 20:49  Information       
    Driver    SYSTEM               
    ATC 06:1d:d4:eb:87:00 xfinitywifi 11 RSSI=-90
    171         S24EvMon          
    3/8/2015 20:49  Error     
    Driver    SYSTEM               
    AssociationFailure 06:1d:d4:eb:87:00 xfinitywifi 11 CNCT_GENERAL_FAILURE
    172         S24EvMon          
    3/8/2015 20:49  Information       
    Driver    SYSTEM               
    ATC 06:1d:d5:d5:34:f0 xfinitywifi 6 RSSI=-82
    173         S24EvMon          
    3/8/2015 20:49  Success               
    Driver    SYSTEM               
    RxAuthSuccess 06:1d:d5:d5:34:f0 6
    174         S24EvMon          
    3/8/2015 20:49  Success               
    Driver    SYSTEM               
    RxAssocResp 06:1d:d5:d5:34:f0 6 -81
    175         S24EvMon          
    3/8/2015 20:50  Information       
    Driver    SYSTEM               
    AddToExclude 06:1d:d5:d5:34:f0 xfinitywifi 6 WEV_EXCLUDE_LIST_REASON_802_11_AUTH_FAILURE
    176         S24EvMon          
    3/8/2015 20:50  Information       
    Driver    SYSTEM               
    ATC 06:1d:d5:d5:34:f0 xfinitywifi 6 RSSI=-79
    177         S24EvMon          
    3/8/2015 20:50  Success               
    Driver    SYSTEM               
    RxAuthSuccess 06:1d:d5:d5:34:f0 6
    178         S24EvMon          
    3/8/2015 20:50  Success               
    Driver    SYSTEM               
    RxAssocResp 06:1d:d5:d5:34:f0 6 -80
    179         S24EvMon          
    3/8/2015 21:03  Information       
    Driver    SYSTEM               
    RoamTrigger 06:1d:d5:d5:34:f0 xfinitywifi 6 RSSI=-81 MisBcn=8 RSSITh=-85 Roam Other Reason
    186         S24EvMon          
    3/8/2015 21:21  Information       
    General               
    SYSTEM               
    DeviceIoCtrlS24NDIS: (2) Failed to send OID 0xff100055 to driver. Error - 31
    187        
    S24EvMon          
    3/8/2015 21:21  Information       
    General               
    SYSTEM               
    DeviceIoCtrlS24NDIS - Dot11ExtNicSpecificExtension failed (31)

  • Serial Write - 8Mb file to write. Write command can only do 256 Bytes at a time. How to split up?

    First, thanks for this resource. I've used this forum quite a bit as a "lurker" and it's gotten me this far. Hoping to learn a bit, so I can contribute
    Anyway, my issue is this:
    I am ultimately trying to write an 8Mb binary file to an 8Mb Serial Flash device via the Total Phase Aardvark. The writes to the flash device I am using are limited to 256 bytes per write command. The vi program attached is capable of writing 256 bytes at a time, but not anything more. I realize I need to incorporate some sort of "For Loop" (and I understand that I'd want to do it =(File Size)/256 interations, but I can't seem to figure out how.
    Does anyone have any quick advice to drive me in the right direction?
    Thank you!
    Attachments:
    Aardvark bin test 02.vi ‏33 KB

    Well, you seem to have answered your own question, so it's not clear what your specific issue is. Is it how to extract 256 bytes at a time?
    As for the code... umm... I'm not entirely sure what you're trying to accomplish with the whole top half of your code, but it seems to me that almost the whole thing can be replaced by a single call to the Read Binary File function. What is the format of these binary files?

Maybe you are looking for

  • GUI_DOWNLOAD and spaces

    Hi I'm using GUI_DOWNLOAD to load data down to a local file. My internal table consists of 2 fields field(660) type c, spaces(12) type c. I have two issues, when I down load the file, I'm not sure if I get 672 characters transfered to the text file,

  • Sales order- Warning msg Static credit check

    Hi, SAP Guru, When I create a order & saving it ...a POP UP comes with warning msg the static credit limit exceeds..... Can any one please let me know the how I can remove the warning POP UP . As client do not want any pop up should come while saving

  • Install Oracle 10g on Linux RH with existing Oracle 9i

    I have Oracle enterprise 9i running on a linux server. Would i have any problem if I install Oracle10g for another db on the same server. What are the issues I should consider in order to avoid damage of the existing 9i db Thanks, Odette

  • Problem of "create type"

    I have following package. If I put the definition myTableType outside the package, i.e. if I execute "create myTableType as table of char(2)", then the package has no problems. But if I put the definition inside pk_test, then it will return an error.

  • The type or namespace name 'IBM' could not be found (are you missing a using directive or an assembly reference?)

    please help on below error  Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler