Search results

  1. J

    How to vaildate a zip file, before post to API

    ok, so they deliver some .p or .r files; you could deliver also unzip.exe along those files, no need to "install" it, just copying unzip.exe is enough. You put it into the PROPATH, then SEARCH it then INPUT THROUGH VALUE(<result of SEARCH("unzip.exe")>)...
  2. J

    How to vaildate a zip file, before post to API

    the client side is developped using OpenEdge?
  3. J

    How to vaildate a zip file, before post to API

    sorry I read too fast. if unzip.exe is in the PATH (not PROPATH) it should work anyway, but if not you can replace unzip.exe in the code by the full path.
  4. J

    How to vaildate a zip file, before post to API

    Hi, as I say: "You will need to use unzip.exe from infozip (Info-ZIP Home Page)", so you have to visit this site, download and install unzip.exe first...
  5. J

    How to vaildate a zip file, before post to API

    Hello You will need to use unzip.exe from infozip (Info-ZIP Home Page), then some code on the lines of the following: DEFINE VARIABLE cTextLine AS CHARACTER NO-UNDO. input through unzip.exe -t test.zip. REPEAT: import unformatted cTextLine. <here you test the contents of cTextLine to...
  6. J

    Upgrade from 9.1E to 12.8 (Windows)

    Hi Joe I'm late to the party ;) but you know I'm always available to help you migrating pdfInclude! How is going this 9.1E to 12.8 migration? regards JC
  7. J

    Question "OUTPUT TO" -> path of location where the file needs to be saved is on a different server

    Hello I second @Cringer, and more if it is a lot of data: this will take some time and you could have a (even small) network outage in the middle. It would be more robust to generate it locally, then copy it over. If something fails later on, it will be easier to see where the problem is coming...
  8. J

    Question Question on progress procedure mode

    Hi Can't you stop the pstimer during the process? You stop it at the beginning of 1, then restart it at the end of 2. no?
  9. J

    Answered Performance issue with use of -cpinternal UTF-8 startup parameter

    Hi Does this help to do FIX-CODEPAGE ( EncodedData) = "ISO8859-1". before anything else? Base64 encoded fits in ISO8859-1 so this could work. Regards JC
  10. J

    Counting All Characters in a String

    Hi Hassam Try the LENGTH() function, it is what you are searching for. ++ JC
  11. J

    Answered Way of code

    Hello Are you going to use PASOE or Appserver classic? This would be the logical step to take, you would then be able to progressively migrate your business logic to the appserverand even reuse it from other places, like a web app. On the Appserver I use PLIPs (procedures librairies) and...
  12. J

    REST and WEB Transport

    Hi anonymous forum member REST transport is much more limited than WEB; you can only have text/json in the body of the web messages. It may be simpler to implement because it is less low level than WEB; but you can create your own REST web handler once and reuse it for all of your endpoints...
  13. J

    Longchar and substring

    Hi In the second substring you are tryiong to store 40.000 characters in the CHARACTER variable, hence the error. I believe you want to store only 20.000, from 20.001 to 40.000, if this is the case: assign lv_short = substring(lv_long,20001,20000). ++
  14. J

    Color Picker - OCX

    Thanks indeed :) Very interesting! Let me share my findings also: if you want to set / open the colour picker with a particular colour, do: DEFINE VARIABLE oColor AS System.Drawing.Color. oColor = System.Drawing.Color:fromArgb(255, 0, 0). /* R, G, B values */ colorDialog1:color = oColor...
  15. J

    PDFInclude Barcode Code 128

    There is no smiley for "blush" else I would use it :) Many thanks guys, and many thanks @davissix !
  16. J

    PDFInclude Barcode Code 128

    Hello Code 128 requires some coding, and you can choose between 3 tables A, B and C to output the most compact code possible (else the barcode might be too wide to scan correctly, or just fit where you intend to). Then you add the checksum, but this is the easy part ;) You must be able to find...
  17. J

    Answered Variable length encoding - 'C' code converted into ABL

    Glad it helped :) It was a nice little exercise to end the day :)
  18. J

    Answered Variable length encoding - 'C' code converted into ABL

    Something like that? DEFINE VARIABLE i AS INTEGER NO-UNDO. DEFINE VARIABLE iByte AS INTEGER NO-UNDO. DEFINE VARIABLE iEncodedByte AS INTEGER EXTENT 4 INITIAL -1 NO-UNDO. DEFINE VARIABLE iMultiplier AS INTEGER NO-UNDO. DEFINE VARIABLE iValue AS INTEGER INITIAL...
  19. J

    PDFINCLUDE

    Hi Thiago You are using a very old version of pdfInclude. The support for existent pdfs is not good is the old version, and has since been completely rewritten. The old version can load existent pdf files, but is not compatible with any possible pdf. In fact it is compatible with very few pdf...
  20. J

    How to convert Json Memptr to JsonObject

    Hello, As per Progress KB - What is the maximum size limit for the CLOB, BLOB and LONGCHAR data types? the limit for LONGCHAR is 1Gb, are you sure your JSON is larger than that? If this is the case then I'm not sure JSON is very adapted for what you are doing... Regards JC
Top