Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Why can't I make an instance of an image in my custom service class?

$
0
0
Hi everybody, I am using an custom service to post some images in base64 to AX, the thing is i am getting stuck the moment I want to create an image.
Removing everything else I know this is the problem. Here is my method:

[SysEntryPointAttribute] public str postimg(str _encodedImage) { Image img = new Image(); return "ok"; }
When I call my method my service returns this:

"Message": "The creator of this fault did not specify a Reason."

But I can do create binData without problems.
BinData binData = new BinData();
Also, my code works perfectly on a Job, I would really appreciate your help since I am really new at this.




Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>