Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send local images in microsoft botframework sdk v4 using c#?? #1364

Closed
MounikaPedapati opened this issue Mar 28, 2019 · 7 comments
Closed
Assignees

Comments

@MounikaPedapati
Copy link

This is not for asking questions or filing bugs

To get help with an issue with your bot

To file an issue against a component please go to the components repo

@MounikaPedapati
Copy link
Author

MounikaPedapati commented Mar 28, 2019

Hello,

I have created a bot using microsoft botframework sdk v4 using c# and it is working well. Now I want send some local images in this bot. I tried with 15.handling-attachments github repo but it is only displaying internet attachment and showing exceptions for inline and uploaded attachments. can anyone please suggest me how can I send_ local images.

@MounikaPedapati
Copy link
Author

MounikaPedapati commented Mar 28, 2019

I am getting this stack trace while trying handling attachments github repo.

Sorry, it looks like something went wrong.’ at Microsoft.Bot.Connector.Conversations.d__10.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Connector.ConversationsExtensions.d__17.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.BotFrameworkAdapter.d__15.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.TurnContext.<>c__DisplayClass22_0.<g__SendActivitiesThroughAdapter|1>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.TurnContext.d__21.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.BotBuilderSamples.AttachmentsBot.d__0.MoveNext() in C:\botbuilder-samples\samples\csharp_dotnetcore\15.handling-attachments\AttachmentsBot.cs:line 65
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.MiddlewareSet.d__3.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Builder.BotAdapter.d__13.MoveNext()’

@jwiley84 jwiley84 self-assigned this Mar 29, 2019
@sgellock sgellock transferred this issue from microsoft/botframework-sdk Mar 29, 2019
@jwiley84
Copy link
Contributor

jwiley84 commented Apr 1, 2019

Can you show me the code you're using for attachments? Or are you using the sample code unedited?

@MounikaPedapati
Copy link
Author

MounikaPedapati commented Apr 2, 2019

https://github.com/Microsoft/BotBuilder-Samples/blob/master/samples/csharp_dotnetcore/15.handling-attachments/AttachmentsBot.cs

I am using handling attachments sample from github. In that internet attachment is working but inline attachment and uploded attachment are not working.

@jwiley84
Copy link
Contributor

jwiley84 commented Apr 2, 2019

Just for further clarification: you're attempting to attach a file (such as a picture) from your computer to the bot, using emulator?

@MounikaPedapati
Copy link
Author

I want to send the image in Base64 format which is saved in my computer to bot using C#.

@jwiley84
Copy link
Contributor

jwiley84 commented Apr 3, 2019

Hi @MounikaPedapati

While researching this issue, I came across your question on Stack Overflow here. The person answering your question there is a member of the Bot Framework Support team, and will be able to further assist you. I'm going to close this issue so you can be better assisted over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants