Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by shrksonfire

  1. shrksonfire

    Attaching files using powerbuilder

    Though GetFileSaveName doesn't seem to be functioning the way I thought it would.
  2. shrksonfire

    Attaching files using powerbuilder

    Yeah I understand how to get the data back from the database and putting it in a blob. And I looked at writex and that makes sense too, but my concern is that I need to create a file and then open it and then write to it. I was thinking about using GetFileSaveName to create a file and then use...
  3. shrksonfire

    Attaching files using powerbuilder

    So it works without using the file length, but I'd like to have that just in case theres a weird EOF in the middle of one of the files for some odd reason. Also, how would I run the binary of the file that I now have stored? Should I try running a command to the terminal or something or is...
  4. shrksonfire

    Attaching files using powerbuilder

    So I have this going on right now, GetFileOpenName("Choose a File", ls_path, ls_filename) file_num = FileOpen(ls_filename) file_length = FileLength64(ls_path) FileReadEx(file_num, file_bin, file_length) When I check file_length, it always returns as -1. Regardless of whether I just give it the...
  5. shrksonfire

    Attaching files using powerbuilder

    Thanks! Really appreciate it
  6. shrksonfire

    Attaching files using powerbuilder

    EDIT: I'm starting to think that importFile is not the correct function, but now I can't find one for my purposes.
  7. shrksonfire

    Attaching files using powerbuilder

    Hey everyone, I just started using powerbuilder and could use some assistance. I want to attach a file from the computer to a datawindow. I'm using a TSQL backend, so I figured I would just create a varbinary column and store the data there. The problem I'm running into is how to get the binary...

Part and Inventory Search

Back
Top