Skip to content

How to send image path in Web API #109

Description

@raxitpandya

tokenData = {
            "profileName" : p.profileName,
            "contentRating" : p.contentRating,
            "isKid" : p.isKid,
            "dob": "2010-05-15",
            "languageIds": LangIds,
            "profileImage": "/assets/images/profile/img-6.png"
        }
 than converting to Json format as per below line
body = FormatJSON(tokenData)
But due to "/assets/images/profile/img-6.png"  path i am getting 500 error.
I check with this path : "../../abc.png" and it is working. Please let me know how to send this "/assets/images/profile/img-6.png" to server
Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions