bgmulinari / B1SLayer

A lightweight SAP Business One Service Layer client for .NET
MIT License
136 stars 47 forks source link

Multiple File Attachment Issue #2

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hello bgMulinari,

Greetings, Thanks for creating this wonderful library 👍 I am trying to use it in my project. We have the requirement to upload multiple files @ one go. So I was trying to put my hands-on the following methods but stumbling upon the following error -

I tried using all the methods but its failed

Method 1 - PostAttachmentsAsync --(fileName, byteArray) Method 2 - PostAttachmentsAsync -- (fileName, Stream)

Screen-Shot 1

image

Screen-Shot 2

image

I also tried to upload the single file using the following method -

var attachmentEntry = await serviceLayer.PostAttachmentAsync(@"C:\files\myfile.pdf"); and it worked.

Also if possible Can you please share sample code of uploading multiple files because for me its getting failed :(

bgmulinari commented 2 years ago

Hi, Rahul. I see you closed your issue. Were you able to solve the issue? Let me know if I can help.

ghost commented 2 years ago

Yes, I was able to fix the issue. It was logical issue.