• lucysome luc
  • 0 Points
  • Member since 2014

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2


Do anyone ever worked with scanning barcodes from barcode reader harware into salesforce?

I'm in the process of writing a recruiting portal which sits on top of the 'Recruiting Manager' application.  I would like to allow  users to upload a resume, and to that end have included a  'File' HTML input, which allows users to post a file to my code-behind page.  I would like to add this file as an Attachment to the 'Candidate' object.

I am able to create the Attachment record, and relate it to the Candidate object.  However, when I then try to download the file from SalesForce, it comes back as junk data.  I have isolated this to the need to convert the body from the byte[] returned by the HTML Input to a base64 byte[], for use by the Web Service API.

However, the only example I can find of how to do this on the boards, or in any SalesForce documentation, uses Visual Basic, and shows the developer using the 'Redim' method to resize the elements in the byte[] to Int64 before populating the array.

As I am developing in C#, I was wondering if anyone has a suggestion on how to do something similar in C#.  I have seen a few posts recommending downloading and installing custom components, but I am hosting my code on an external box, on which I have no control to add components.  I have tried using various methods for the Convert class, but none seem to be working.

Any ideas?